:root {
    --primary-gradient: linear-gradient(135deg, #FF9A44 0%, #FC6076 100%); /* Orange/Red gradient */
    --primary-color: #FF7E5F;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    --input-bg: #fff;
    --white: #ffffff;
    --error-color: #e74c3c;
    --link-color: #666;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--text-color);
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* 改为min-height允许滚动 */
    width: 100%;
    background: var(--primary-gradient);
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0 60px; /* 为top-nav和footer留出空间 */
}

/* Remove old left/right panel styles if they exist, or keep them but unused */
.left-panel, .right-panel {
    display: none;
}

.top-nav {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
    opacity: 0.9;
}

.nav-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.auth-card {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: fadeIn 0.6s ease-out;
    position: relative;
    z-index: 5;
    margin: 20px;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-icon {
    width: 64px;
    height: 64px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: none;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Removed SVG styles as we use IMG now */
/*
.brand-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}
*/

.welcome-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.welcome-sub {
    font-size: 14px;
    color: var(--text-light);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #e0e0e0; /* Softer border */
    border-radius: 12px; /* Smooth corners */
    font-size: 15px;
    transition: all 0.2s;
    outline: none;
    background: #f9f9f9; /* Subtle input background */
}

.form-input::placeholder {
    color: #bbb;
}

.form-input:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 126, 95, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    opacity: 0.6;
    padding: 8px; /* Increased padding for easier clicking */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%; /* Circular hover effect */
}

.toggle-password:hover {
    opacity: 1;
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.05); /* Subtle background on hover */
}

.btn-submit {
    width: 100%;
    height: 52px; /* Slightly taller */
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 14px; /* Matching input slightly */
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 24px;
    box-shadow: 0 10px 20px rgba(255, 126, 95, 0.25);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 126, 95, 0.35);
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(255, 126, 95, 0.2);
}

.register-prompt {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-light);
}

.link-register {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.link-register:hover {
    text-decoration: underline;
}

.simple-footer {
    position: fixed; /* 改为fixed确保始终在底部 */
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    z-index: 5;
    padding: 0 20px;
}

.auth-container {
    /* Overwrite old container styles */
    width: 100%; 
    padding: 0; 
    margin: 0;
    max-width: none;
}

/* Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        padding: 70px 0 50px; /* 移动端调整内边距 */
    }
    
    .top-nav {
        top: 20px;
        right: 20px;
        left: 20px;
        justify-content: space-between; /* 改为space-between让链接分开 */
        gap: 16px;
    }
    
    .simple-footer {
        font-size: 11px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        margin: 16px;
        width: calc(100% - 32px);
    }
    
    .top-nav {
        top: 16px;
        right: 16px;
        left: 16px;
        gap: 12px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .simple-footer {
        font-size: 10px;
        bottom: 10px;
    }
}
