:root {
    --primary-color: #3f51b5;
    --secondary-color: #5c6bc0;
    --accent-color: #00bcd4;
    --light-color: #f5f5f5;
    --dark-color: #263238;
    --error-color: #f44336;
    --success-color: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #20232a 0%, #1a1c23 100%);
    color: var(--light-color);
    overflow-x: hidden;
}

.auth-container {
    width: 420px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.login-box {
    padding: 40px;
    animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.brand-logo {
    margin-right: 15px;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-header h2 {
    font-weight: 500;
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.input-container {
    display: flex;
    align-items: center;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 12px 15px 12px 40px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.show-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.show-password:hover {
    color: var(--accent-color);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.7s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.forgot-password, .register-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.forgot-password:hover, .register-link:hover {
    color: var(--accent-color);
}

.forgot-password::before, .register-link::after {
    content: '○';
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    display: inline-block;
    animation: float 3s infinite ease-in-out;
}

.register-link::after {
    margin-left: 5px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.error-message {
    padding: 12px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    color: var(--error-color);
    margin-bottom: 20px;
    transform: translateY(-20px);
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-fade-out {
    animation: fade-out 0.3s ease-in;
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-container {
        width: 90%;
        max-width: 350px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 320px) {
    .login-box {
        padding: 30px 20px;
    }

    .form-group {
        margin-bottom: 20px;
    }
}
.error-message {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    transform: translateY(-20px);
    animation: slide-down 0.5s ease-out;
}

.error-fade-out {
    animation: fade-out 0.3s ease-in forwards;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.logged-in-message {
    text-align: center;
    padding: 20px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    margin-top: 20px;
}

.logged-in-message p {
    margin-bottom: 15px;
    color: var(--success-color);
    font-weight: 500;
}
:root {
    --primary-color: #3f51b5;
    --secondary-color: #5c6bc0;
    --accent-color: #00bcd4;
    --light-color: #f5f5f5;
    --dark-color: #263238;
    --error-color: #f44336;
    --success-color: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #20232a 0%, #1a1c23 100%);
    color: var(--light-color);
    overflow-x: hidden;
}

.auth-container {
    width: 420px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.login-box {
    padding: 40px;
    animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.brand-logo {
    margin-right: 15px;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-header h2 {
    font-weight: 500;
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.input-container {
    display: flex;
    align-items: center;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 12px 15px 12px 40px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.show-password {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.show-password:hover {
    color: var(--accent-color);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.7s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.forgot-password, .register-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.forgot-password:hover, .register-link:hover {
    color: var(--accent-color);
}

.forgot-password::before, .register-link::after {
    content: '○';
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    display: inline-block;
    animation: float 3s infinite ease-in-out;
}

.register-link::after {
    margin-left: 5px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.error-message {
    padding: 12px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    color: var(--error-color);
    margin-bottom: 20px;
    transform: translateY(-20px);
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-fade-out {
    animation: fade-out 0.3s ease-in forwards;
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* 登录信息显示样式 */
.login-info {
    margin-top: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h3 {
    color: var(--success-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-card p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.logout-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.logout-btn:hover {
    background: #c64242;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 74, 59, 0.3);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .auth-container {
        width: 90%;
        max-width: 350px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}