﻿/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #FFD700, #FFA500); /* 金色到橙黄渐变 */
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 360px;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border: 1px solid #f0f0f0;
}

    .login-card h2 {
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        color: #333;
        margin-bottom: 20px;
    }

.input-group {
    margin-bottom: 16px;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .input-field:focus {
        border-color: #FFA500;
        box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
    }

.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #FFA500;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 12px;
}

    .login-btn:hover,
    .login-btn:active {
        background-color: #FF8C00;
    }

.register-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: #FFA500;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

    .register-link:hover {
        text-decoration: underline;
    }

/* 防止 iOS 自动缩放表单 */
input[type="text"],
input[type="password"] {
    font-size: 16px;
}
