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

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: #111111;
    color: #fff;
    overflow-x: hidden;
    touch-action: manipulation;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

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

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #666;
}

.form-container {
    background-color: #191919;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #2D2D2D;
}

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

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #ccc;
}

.form-input {
    width: 100%;
    padding: 11px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #4F4F4F;
}

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

.error-message {
    color: #ff4444;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 10px;
    background-color: #0066CC;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #1472D0;
}

.submit-btn:active {
    background-color: #0056AB;
}

.submit-btn:disabled {
    background-color: #0066CC;
    opacity: 0.5;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #2D77E5;
    text-decoration: none;
    font-size: 14px;
}

.form-footer a:hover {
    color: #2D77E5;
}

/* 响应式优化 */
@media (max-width: 320px) {
    .container {
        padding: 20px;
    }

    .form-container {
        padding: 24px;
    }

    .logo {
        font-size: 28px;
    }
}

/* 防止输入框缩放 */
input[type="text"],
input[type="password"] {
    font-size: 16px !important;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #4F4F4F;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.header span {
    font-size: 20px;
    font-weight: bold;
    padding-left: 16px;
}