.login-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(150deg, #003662 0%, #004C8A 55%, #0F6EB4 100%);
}

/* Decorative circles */
.login-page::before,
.login-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
}
.login-page::before {
    width: 600px; height: 600px;
    top: -200px; right: -200px;
    background: rgba(254, 234, 164, 0.06);
}
.login-page::after {
    width: 500px; height: 500px;
    bottom: -200px; left: -200px;
    background: rgba(255, 255, 255, 0.04);
}

.login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Card top accent */
.login-card-header {
    background: var(--fju-yellow);
    padding: 32px 40px 28px;
    text-align: center;
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

.login-site-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: #004C8A;
    letter-spacing: 0.04em;
}

.login-subtitle {
    font-size: 0.82rem;
    color: rgba(15, 82, 127, 0.65);
    margin-top: 4px;
    letter-spacing: 0.06em;
}

/* Card body */
.login-card-body {
    padding: 36px 40px 40px;
}

.login-heading {
    font-family: 'Noto Serif TC', serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 6px;
}

.login-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Error alert */
.login-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff4f4;
    border: 1px solid #fca5a5;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #b91c1c;
    line-height: 1.5;
}

.login-error-icon {
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 1px;
}

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

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--fju-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 76, 138, 0.1);
}

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

/* Password field wrapper */
.input-wrap {
    position: relative;
}

.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.toggle-pw:hover { opacity: 1; }

/* Submit */
.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--fju-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(0, 76, 138, 0.3);
}

.btn-login:hover {
    background: #003662;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 76, 138, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--border);
    font-size: 0.78rem;
    color: #ccc;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Help links */
.login-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.82rem;
}

.login-links a {
    color: var(--fju-blue);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.login-links a:hover { opacity: 1; }

/* Footer note */
.login-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.7;
}

.login-note a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
}
.login-note a:hover { color: var(--fju-yellow); }

@media (max-width: 480px) {
    .login-card-header { padding: 28px 28px 24px; }
    .login-card-body   { padding: 28px 28px 32px; }
}
