/* ---- Login Page ---- */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

/* ---- Wave Container ---- */
.wave-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave-container svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 55%;
}

.wave-deep {
    fill: #1e40af;
    animation: waveSlide 28s linear infinite;
}

.wave-primary {
    fill: #2563eb;
    opacity: 0.85;
    animation: waveSlide 20s linear infinite reverse;
}

.wave-light {
    fill: #3b82f6;
    opacity: 0.7;
    animation: waveSlide 14s linear infinite;
}

.wave-accent {
    fill: #60a5fa;
    opacity: 0.25;
    animation: waveSlide 10s linear infinite reverse;
}

@keyframes waveSlide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- Card ---- */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 410px;
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 36px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
    animation: cardFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
    opacity: 0;
    transform: translateY(16px);
}

@keyframes cardFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Logo ---- */
.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    width: 150px;
    height: auto;
    display: inline-block;
}

/* ---- Locale Switcher ---- */
.locale-links {
    text-align: center;
    margin-bottom: 20px;
}

.locale-links a {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: none;
    padding: 0 6px;
    transition: color 0.15s;
}

.locale-links a:hover {
    color: #2563eb;
}

.locale-links .separator {
    color: #cbd5e1;
}

/* ---- Form Fields ---- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.input-wrapper:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.input-wrapper svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke: #94a3b8;
    transition: stroke 0.2s;
}

.input-wrapper:focus-within svg {
    stroke: #2563eb;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 0;
    border: none;
    background: transparent;
    font-size: 0.92rem;
    color: #1e293b;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.field-validation-valid {
    display: none;
}

.text-danger {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
    display: block;
}

/* ---- Validation Summary ---- */
.validation-summary-text {
    font-size: 0.82rem;
}

/* ---- Submit Button ---- */
.btn-submit {
    width: 100%;
    padding: 12px 0;
    background: #0b4f8d;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover {
    background: rgba(11, 79, 141, 0.8);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---- Footer ---- */
.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.7rem;
    color: #94a3b8;
}

.login-footer a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
}

.login-footer a:hover {
    color: #2563eb;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px 28px;
        border-radius: 16px;
    }

    .login-logo img {
        width: 120px;
    }

    .wave-container svg {
        height: 40%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wave-deep,
    .wave-primary,
    .wave-light,
    .wave-accent {
        animation: none;
    }

    .login-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
