/* VIP LOGIN - Material Design Style (Optimized) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Main Layout ===== */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    animation: slideUp 0.6s ease-out;
}

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

/* ===== Hero Section ===== */
.hero-section { padding:1.5rem 1.5rem 0; }

.title {
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    color: #343a40;
    margin-bottom: 1rem;
}
.title img { max-height:100px; width: auto; }

.alert-card {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.alert-card .icon { font-size: 1.8rem; color: #1976d2; flex-shrink: 0; }
.alert-card .content p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #444; }
.highlight { color: #1976d2; font-weight: 700; }

/* ===== Form Section ===== */
.form-section { padding: 2rem; }
.input-group { margin-bottom: 1.25rem; position: relative; width: 100%; }
.link-row { text-align: left; margin-bottom: 1rem; }
.link-row a { font-size: 0.875rem; text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

/* Floating Label Input */
.floating-label { position: relative; width: 100%; }

.floating-label .md-input {
    width: 100%;
    padding: 1.25rem 0.75rem 0.5rem;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-size: 1rem;
    outline: none;
    border-radius: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-label .md-input:focus {
    border-bottom-color: #1976d2;
    box-shadow: 0 1px 0 0 #1976d2;
}

.floating-label label {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    color: #888;
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.25s ease;
}

.floating-label .md-input:focus + label,
.floating-label .md-input:not(:placeholder-shown) + label {
    top: -0.25rem;
    font-size: 0.75rem;
    color: #1976d2;
    font-weight: 500;
}
/* 修复 Edge 浏览器自动填充样式 */
.floating-label .md-input:-webkit-autofill,
.floating-label .md-input:-webkit-autofill:hover,
.floating-label .md-input:-webkit-autofill:focus,
.floating-label .md-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #000;
}

/* 针对 Edge 的额外修复 */
.floating-label .md-input:autofill,
.floating-label .md-input:autofill:hover,
.floating-label .md-input:autofill:focus,
.floating-label .md-input:autofill:active {
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
}

/* Button */
.btn-primary {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25,118,210,0.35);
}
.btn-primary:active { transform: translateY(0); }

/* Validation Messages */
.message-box { min-height: 0; }
.error-message {
    color: #e53935;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #fce4ec;
    border-radius: 6px;
}

/* ===== Footer ===== */
.footer {
    background: #f8f9fa;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #888;
    font-size: 0.78rem;
    line-height: 1.8;
}
.footer a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: #1976d2; text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main { padding: 1rem 0.75rem; }
    .card { max-width: 100%; border-radius: 12px; }
    .hero-section, .form-section { padding: 1.5rem; }
    .title { font-size: 1.25rem; }
    .title img { max-height: 100px; }
}
