/* Magic主题 - Cartoon风格登录弹窗样式 */

/* ===== Cartoon风格登录弹窗样式 ===== */
.auth-modal-container {
    position: relative;
    width: 100%;
    padding: 30px;
}

/* 品牌头部 */
.auth-modal-brand {
    text-align: center;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.auth-modal-logo {
    height: 60px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-modal-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.auth-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #6366F1, #22D3EE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-modal-subtitle {
    font-size: 14px;
    color: #8a99b0;
    margin: 0;
}

/* 标签切换 */
.auth-modal-tabs {
    display: flex;
    background: rgba(243, 244, 246, 0.5);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 0.5s ease 0.1s forwards;
}

.auth-modal-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    gap: 6px;
}

.auth-modal-tab.active {
    background: white;
    color: #3772ff;
    box-shadow: 0 2px 8px rgba(55, 114, 255, 0.15);
}

.auth-modal-tab:hover:not(.active) {
    color: #3772ff;
    background: rgba(255, 255, 255, 0.5);
}

/* 表单容器 */
.auth-modal-form-container {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-modal-form-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease 0.2s forwards;
}

/* 表单样式 */
.auth-modal-form {
    width: 100%;
}

/* 输入组 */
.auth-modal-input-group {
    margin-bottom: 20px;
}

/* 输入框包装器 */
.auth-modal-input-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(229, 231, 235, 1);
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.auth-modal-input-wrapper:focus-within {
    border-color: #3772ff;
    box-shadow: 0 0 0 3px rgba(55, 114, 255, 0.1);
    transform: translateY(-1px);
}

/* 输入框图标 */
.auth-modal-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s ease;
    font-size: 16px;
}

.auth-modal-input-wrapper:focus-within .auth-modal-input-icon {
    color: #3772ff;
}

/* 输入框 */
.auth-modal-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #1f2937;
    outline: none;
    transition: color 0.3s ease;
}

.auth-modal-input::placeholder {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.auth-modal-input:focus::placeholder {
    color: #d1d5db;
}

/* 密码输入框 */
.auth-modal-input-password {
    padding-right: 50px;
}

/* 密码切换按钮 */
.auth-modal-password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

.auth-modal-password-toggle:hover {
    color: #3772ff;
}

/* 验证码包装器 */
.auth-modal-captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.auth-modal-captcha-wrapper .auth-modal-input-wrapper {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 120px - 12px);
}

/* 验证码图片 */
.auth-modal-captcha-img {
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid rgba(229, 231, 235, 1);
    transition: all 0.3s ease;
    width: 100px;
    flex-shrink: 0;
    object-fit: cover;
}

.auth-modal-captcha-img:hover {
    border-color: #3772ff;
    transform: translateY(-1px);
}

/* 发送验证码按钮 */
.auth-modal-send-code {
    padding: 12px 18px;
    background: linear-gradient(135deg, #3772ff, #4361ee);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.auth-modal-send-code:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 114, 255, 0.3);
}

.auth-modal-send-code:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* 选项区域 */
.auth-modal-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* 记住我 */
.auth-modal-remember {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.auth-modal-remember input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #3772ff;
}

/* 忘记密码 */
.auth-modal-forgot {
    font-size: 14px;
    color: #3772ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-modal-forgot:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 协议同意 */
.auth-modal-agreement {
    margin-top: 15px;
    margin-bottom: 20px;
}

/* 提交按钮 */
.auth-modal-submit-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3772ff, #4361ee);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-modal-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 114, 255, 0.3);
}

.auth-modal-submit-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.auth-modal-agree-label {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1.4;
}

.auth-modal-agree-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    width: 14px;
    height: 14px;
    accent-color: #3772ff;
}

.auth-modal-agree-link {
    color: #3772ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-modal-agree-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 登录注册弹窗响应式设计 */
@media (max-width: 480px) {
    .auth-modal-container {
        padding: 20px;
    }
    
    /* 验证码布局保持水平排列，但调整尺寸 */
    .auth-modal-captcha-wrapper {
        gap: 8px;
    }
    
    .auth-modal-captcha-wrapper .auth-modal-input-wrapper {
        max-width: calc(100% - 80px - 8px);
    }
    
    .auth-modal-captcha-img {
        width: 80px;
        height: 40px;
    }
    
    .auth-modal-send-code {
        width: 100%;
        margin-top: 10px;
    }
    
    .auth-modal-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .auth-modal-captcha-wrapper {
        gap: 6px;
    }
    
    .auth-modal-captcha-wrapper .auth-modal-input-wrapper {
        max-width: calc(100% - 70px - 6px);
    }
    
    .auth-modal-captcha-img {
        width: 70px;
        height: 36px;
    }
}
