/* Verify Section */
.verify-section {
    padding: 80px 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-container {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
}

.verify-title {
    text-align: center;
    font-size: 36px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.verify-description {
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 42px;
    line-height: 1.6;
}

.query-container {
    display: flex;
    flex-direction: column;
}

.query-box {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.query-bar {
    display: flex;
    width: 100%;
    position: relative;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-bottom: 20px;
    box-sizing: border-box;
    background-color: var(--secondary-color);
    cursor: text;
}

.query-tip {
    position: absolute;
    transition: all 0.3s ease;
    height: max-content;
    padding-left: 12px;
    font-size: 15px;
    pointer-events: none;
    color: #777;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    opacity: 1;
    visibility: visible;
}

.query-bar.active .query-tip {
    transform: translateY(-59%);
    font-size: 13px;
    color: var(--primary-color);
}

#verify-code {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    box-sizing: border-box;
    font-size: 16px;
    color: var(--text-color);
    background: none;
    padding: 0 40px 0 12px;
    box-shadow: none;
}

#verify-code::placeholder {
    font-size: 13px;
    color: #999;
}

.close-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8A8A8A;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    cursor: pointer;
    z-index: 10;
}

.close-icon::before,
.close-icon::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close-icon::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.close-icon:hover {
    background: #666;
}

.submit-btn {
    outline: none;
    width: 100%;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    margin-top: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    border-radius: 3px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    display: none;
    width: 30px;
    height: 30px;
    z-index: 2;
}

.loading-spinner.active {
    display: block;
}

@keyframes spin {
    from {
        transform: rotateZ(0deg);
    }
    to {
        transform: rotateZ(360deg);
    }
}

.loading-spinner.active {
    animation: spin 0.8s ease-in-out infinite;
}

.loading-spinner span {
    width: 2px;
    height: 9px;
    transform-origin: 50% 15px;
    position: absolute;
    background-color: var(--secondary-color);
    border-radius: 1px;
    top: 0;
    left: 50%;
    margin-left: -1px;
}

.loading-spinner span:nth-child(1) {
    transform: rotateZ(0.125turn);
}

.loading-spinner span:nth-child(2) {
    transform: rotateZ(0.250turn);
}

.loading-spinner span:nth-child(3) {
    transform: rotateZ(0.375turn);
}

.loading-spinner span:nth-child(4) {
    transform: rotateZ(0.500turn);
}

.loading-spinner span:nth-child(5) {
    transform: rotateZ(0.625turn);
}

.loading-spinner span:nth-child(6) {
    transform: rotateZ(0.750turn);
}

.loading-spinner span:nth-child(7) {
    transform: rotateZ(0.875turn);
}

.loading-spinner span:nth-child(8) {
    transform: rotateZ(1.000turn);
}

.btn-text {
    display: block;
    position: relative;
    z-index: 1;
}

.btn-text.hidden {
    display: none;
}

.result-content {
    min-height: 80px;
    background-color: #FAFAFA;
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    box-sizing: border-box;
    font-size: 14px;
    position: relative;
    display: none;
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

.result-content.show {
    display: block;
}

.result-description {
    color: var(--text-color);
    line-height: 1.6;
    word-wrap: break-word;
}

.result-description.success {
    color: #4caf50;
}

.result-description.warning {
    color: #9c27b0;
}

.result-description.error {
    color: #f44336;
}

/* Desktop Styles */
@media screen and (min-width: 960px) {
    .query-box {
        flex-direction: row;
        align-items: flex-start;
    }

    .query-bar {
        margin-bottom: 0;
        flex: 1;
    }

    .submit-btn {
        width: 30%;
        margin-left: 10px;
        margin-top: 0;
    }
}

/* Tablet Styles */
@media (max-width: 768px) {
    .verify-section {
        padding: 60px 15px;
    }

    .verify-title {
        font-size: 28px;
    }

    .verify-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .query-box {
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .verify-section {
        padding: 40px 15px;
    }

    .verify-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .verify-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .query-bar {
        height: 45px;
    }

    #verify-code {
        font-size: 14px;
        padding: 0 35px 0 10px;
    }

    .query-tip {
        font-size: 14px;
    }

    .submit-btn {
        height: 45px;
        font-size: 16px;
    }

    .result-content {
        padding: 15px;
        font-size: 13px;
    }
}
