/* CSS/styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    overflow-x: hidden;
}


/* 登录卡片 */
.card-login {
    background: rgba(22, 27, 34, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(88, 166, 255, 0.1);
    animation: cardSlideIn 0.6s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #58a6ff 0%, #1f6feb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #8b949e;
    font-size: 1rem;
}

/* 表单样式 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #c9d1d9;
    font-size: 0.9rem;
}

.form-group input {
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.form-group input:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
    background: rgba(13, 17, 23, 0.9);
}

.form-group input::placeholder {
    color: #6e7681;
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    color: #6e7681;
    font-size: 1.1rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    background: none;
    border: none;
    color: #6e7681;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #58a6ff;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #8b949e;
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #30363d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background: #238636;
    border-color: #238636;
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 登录按钮 */
.login-btn {
    position: relative;
    padding: 1rem;
    background: linear-gradient(135deg, #1f6feb 0%, #388bfd 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-top: 1rem;
}

.login-btn:hover {
    background: linear-gradient(135deg, #388bfd 0%, #58a6ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 139, 253, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #30363d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 登录页脚 */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #30363d;
    color: #8b949e;
}

.register-link {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #79c0ff;
    text-decoration: underline;
}

/* 状态消息 */
.status-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.status-message.success {
    background: rgba(46, 160, 67, 0.1);
    border: 1px solid #238636;
    color: #3fb950;
    display: block;
}

.status-message.error {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid #da3633;
    color: #f85149;
    display: block;
}

.status-message.warning {
    background: rgba(187, 128, 9, 0.1);
    border: 1px solid #bb8009;
    color: #d29922;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .Bottom-Background {
        padding: 1rem;
    }

    .card-login {
        padding: 2rem;
        margin: 1rem;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .card-login {
        padding: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .login-header h1 {
        font-size: 1.6rem;
    }
}
