/**
 * XGX Email Verification Module
 *
 * @author    XGX Team
 * @copyright Copyright (c) 2023 XGX
 * @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */

/* 整体表单样式 */
.email-verification-container {
    margin: 15px 0;
    position: relative;
}

.email-verification-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background-color: #1a1f25;
    border: 1px solid #2c3037;
}

.email-verification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #1a1f25;
    color: #fff;
}

.email-verification-input {
    flex: 1;
    border: none;
    background-color: #1a1f25;
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
    height: 50px;
}

.email-verification-input::placeholder {
    color: #6c757d;
}

/* 验证码发送按钮样式 */
.email-verification-send {
    display: inline-block;
    padding: 8px 20px;
    background-color: #f7e84a;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    margin-right: 5px;
    height: 40px;
    align-self: center;
}

.email-verification-send:hover {
    background-color: #e6d83e;
}

.email-verification-send:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    color: #666;
}

/* 加载状态样式 */
.email-verification-send.loading {
    position: relative;
    padding-right: 30px;
}

.email-verification-send.loading:after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -7.5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 验证码输入框样式 */
.form-group.email_verification_code {
    margin-top: 15px;
}

/* 响应式样式 */
@media (max-width: 767px) {
    .email-verification-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-verification-icon {
        width: 100%;
        height: 40px;
    }
    
    .email-verification-send {
        width: 100%;
        margin: 5px 0;
        height: 44px;
    }
}