/* 
 * Milano Eyes Fashion Reward - 登录注册样式
 * 黑金风格设计
 */

/* ======= 登录注册模态框 ======= */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1100;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.active {
    display: block;
    opacity: 1;
}

.auth-container {
    max-width: 500px;
    margin: 80px auto;
    background: linear-gradient(145deg, #191919, #232323);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.auth-modal.active .auth-container {
    transform: translateY(0);
    opacity: 1;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d4af37' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.auth-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.auth-logo {
    margin-bottom: 20px;
}

.auth-logo img {
    height: 50px;
}

.auth-title {
    font-size: 1.8rem;
    color: #d4af37;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    padding-top: 10px;
    font-weight: 700;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab.active {
    color: #d4af37;
    font-weight: 600;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.auth-tab.active::after {
    width: 80%;
}

.auth-body {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: #333;
    transition: all 0.3s ease;
}

.form-control.input-error,
input.input-error {
    border: 1px solid #b20000;
    background-color: rgba(255, 235, 235, 0.9);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-message {
    color: #b20000;
    background-color: rgba(255, 235, 235, 0.2);
    border-left: 3px solid #d4af37;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
    font-size: 0.9rem;
    animation: fadeIn 0.5s;
}

.form-control {
    color: #333333;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #d4af37;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.9rem;
}

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #d4af37;
    border-color: #d4af37;
}

.remember-me input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-size: 0.8rem;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #d4af37;
    text-decoration: underline;
}

.btn-auth {
    width: auto;
    min-width: 160px;
    padding: 12px 30px;
    background-color: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-auth:hover {
    background-color: #d4af37;
    color: #000000;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: rgba(212, 175, 55, 0.2);
}

.social-auth {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-auth-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.social-auth-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-auth-btn.google:hover { background-color: #DB4437; border-color: #DB4437; }
.social-auth-btn.facebook:hover { background-color: #3b5998; border-color: #3b5998; }
.social-auth-btn.wechat:hover { background-color: #07c160; border-color: #07c160; }

.auth-footer {
    text-align: center;
    padding: 20px 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.auth-switch {
    color: #d4af37;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-switch:hover {
    text-decoration: underline;
}

.close-auth {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.close-auth:hover {
    background-color: rgba(212, 175, 55, 0.2);
    color: #ffffff;
}

/* 验证码 */
.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.captcha-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 动画效果 */
@keyframes glowing {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
}

.auth-container {
    animation: glowing 3s infinite;
}

/* 响应式样式调整 */
/* 平板设备 (小于992px) */
@media (max-width: 991px) {
    .auth-container {
        max-width: 450px;
        margin: 60px auto;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .auth-subtitle {
        font-size: 0.95rem;
    }
    
    .auth-logo img {
        height: 45px;
    }
    
    .btn-auth {
        min-width: 140px;
        padding: 10px 25px;
    }
}

/* 手机设备 (小于768px) */
@media (max-width: 767px) {
    .auth-container {
        max-width: 92%;
        margin: 40px auto;
    }
    
    .auth-header {
        padding: 20px;
    }
    
    .auth-logo img {
        height: 40px;
    }
    
    .auth-title {
        font-size: 1.4rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .auth-body {
        padding: 20px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-control {
        padding: 12px;
    }
    
    .btn-auth {
        width: 100%;
        min-width: auto;
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .captcha-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .captcha-img {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }
}

/* 小型手机设备 (小于576px) */
@media (max-width: 575px) {
    .auth-container {
        margin: 20px auto;
        max-width: 95%;
    }
    
    .auth-tab {
        padding: 12px 0;
        font-size: 0.95rem;
    }
    
    .auth-title {
        font-size: 1.3rem;
    }
    
    .auth-subtitle {
        font-size: 0.85rem;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .social-auth-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
