/*
 * Copyright (c) 2025 EUMETSAT
 * License: Proprietary
 * Forgot-password page: panel layout, form controls, info box.
 */

@charset "ISO-8859-1";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html, body {
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    display: flex;
    background: var(--color-surface);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fp-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.login-hero {
    position: relative;
    flex: 1 1 62%;
    min-height: 100vh;
    background-color: #05060b;
    background-image: url('../images/Eumetsat_Earth.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 56px;
    box-sizing: border-box;
    overflow: hidden;
}

.login-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 10, 20, 0.82) 0%,
        rgba(8, 10, 20, 0.55) 35%,
        rgba(8, 10, 20, 0.10) 65%,
        rgba(8, 10, 20, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    color: var(--color-surface);
}

.login-hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    color: var(--color-surface);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.login-hero-title .accent { color: var(--color-surface); }

.login-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    margin: 0 0 36px;
    max-width: 520px;
    font-weight: 400;
}

.login-hero-divider {
    width: 500px;
    height: 5px;
    border-radius: 2px;
    background: var(--color-accent);
    margin-bottom: 28px;
}

.login-hero-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}
.login-hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
}
.login-hero-feature i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30,64,175,0.25);
    color: var(--color-surface);
    font-size: 17px;
    flex-shrink: 0;
    margin-top: 2px;
}
.login-hero-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,0.95);
    line-height: 1.3;
}
.feature-desc {
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255,255,255,0.55);
    line-height: 1.4;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-in-left { animation: fadeInLeft 0.9s ease-out both; }

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.animate-in-right { animation: fadeInRight 0.9s ease-out both; }

.fp-panel {
    flex: 1 1 38%;
    min-width: 380px;
    max-width: 520px;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px clamp(24px, 5vw, 56px);
    background: var(--color-surface);
    box-sizing: border-box;
    position: relative;
}

.forgotPassword-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.forgotPassword-lock-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    background: var(--color-accent-light);
    border: 1px solid #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--color-accent);
}

.forgotPassword-container h2 {
    color: var(--color-text-primary);
    font-size: 1.7em;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.forgotPassword-container p {
    color: var(--color-text-subtle);
    font-size: 0.95rem;
    margin: 0 0 24px;
    line-height: 1.6;
    font-weight: 400;
}

.forgotPassword-container form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.forgotPassword-form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border-2);
    border-radius: var(--radius-md-2);
    background: var(--color-surface);
    color: var(--color-text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
    margin-bottom: 0;
}

.forgotPassword-form-control::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}
.forgotPassword-form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(30,64,175,0.12);
}

.forgotPassword-description {
    color: var(--color-text-subtle);
    font-size: 1.15rem;
    line-height: 1.6;
    margin: 0 0 24px;
}
.forgotPassword-form-control:-webkit-autofill,
.forgotPassword-form-control:-webkit-autofill:hover,
.forgotPassword-form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--color-surface) inset !important;
    caret-color: var(--color-text-primary);
    transition: background-color 5000s ease-in-out 0s;
}

.forgotPassword-btn,
.forgotPassword-btn:link,
.forgotPassword-btn:visited,
.forgotPassword-btn:active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    margin: 0;
    border-radius: var(--radius-md-2);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.18s, box-shadow 0.18s, transform 0.1s;
    box-sizing: border-box;
    background: var(--color-accent);
    color: var(--color-surface);
    box-shadow: 0 1px 2px rgba(30,64,175,0.25);
}
.forgotPassword-btn:hover {
    background: var(--color-accent-hover);
    color: var(--color-surface);
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(30,64,175,0.3);
    transform: translateY(-1px);
}
.forgotPassword-btn:active { transform: scale(0.99); }

.forgotPassword-btn-secondary,
.forgotPassword-btn-secondary:link,
.forgotPassword-btn-secondary:visited,
.forgotPassword-btn-secondary:active {
    background: var(--color-surface);
    border: 1px solid var(--color-border-2);
    color: var(--color-text-secondary-alt);
    box-shadow: none;
}
.forgotPassword-btn-secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-text-muted);
    color: var(--color-text-primary);
    text-decoration: none;
    box-shadow: none;
    transform: translateY(-1px);
}

.forgotPassword-info-box {
    background: var(--color-accent-light);
    border: 1px solid var(--color-accent-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-top: 24px;
    text-align: left;
}
.forgotPassword-info-box p {
    color: var(--color-text-secondary-alt);
    font-size: 12px;
    margin: 0 0 8px;
    line-height: 1.6;
}
.forgotPassword-info-box p:last-child { margin-bottom: 0; }
.forgotPassword-info-box a {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}
.forgotPassword-info-box a:hover { text-decoration: underline; }

.fp-message {
    width: 100%;
    border-radius: var(--radius-md-2);
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 500;
    margin: 14px 0 0;
    text-align: left;
    box-sizing: border-box;
}
.fp-message.success {
    color: var(--color-success-dark);
    background-color: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
}
.fp-message.error {
    color: var(--color-danger);
    background-color: var(--color-danger-bg);
    border: 1px solid var(--color-danger-border);
}

.login-panel-footer {
    width: 100%;
    max-width: 400px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--color-surface-2);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 12px;
}
.login-panel-footer .footer-text {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.login-panel-footer .footer-text + .footer-text {
    margin-top: 8px;
}
.login-panel-footer img { display: block; }
.login-panel-footer .footer-text-highlight { color: var(--color-accent); font-weight: 600; }
.login-panel-footer .footer-link { color: var(--color-accent); text-decoration: none; }
.login-panel-footer .footer-link:hover { text-decoration: underline; }

@media (min-width: 1400px) {
    .login-hero { flex: 0 0 70%; }
    .fp-panel { flex: 0 0 30%; min-width: 420px; }
}

@media (max-width: 992px) {
    .fp-page { flex-direction: column; }

    .login-hero {
        flex: none;
        width: 100%;
        min-height: 38vh;
        height: 38vh;
        padding: 24px;
        justify-content: flex-start;
    }
    .login-hero-content { max-width: 100%; }
    .login-hero-title { font-size: 1.7rem; }
    .login-hero-subtitle { font-size: 0.85rem; margin-bottom: 18px; }
    .login-hero-features { gap: 12px; }
    .login-hero-feature { font-size: 0.8rem; }

    .fp-panel {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        overflow-y: visible;
        padding: 32px 20px 40px;
    }
    .login-panel-footer { margin-top: 48px; }
}

@media (max-width: 576px) {
    .login-hero {
        min-height: 30vh;
        height: 30vh;
        padding: 16px;
    }
    .login-hero-title { font-size: 1.35rem; }
    .login-hero-divider { margin-bottom: 14px; }
    .login-hero-subtitle { display: none; }
    .login-hero-features { display: none; }

    .fp-panel { padding: 24px 16px 32px; }
    .forgotPassword-container,
    .login-panel-footer { max-width: 100%; }

    .forgotPassword-lock-icon { width: 48px; height: 48px; font-size: 18px; margin-bottom: 14px; }
    .forgotPassword-container h2 { font-size: 1.4em; }
    .login-panel-footer { margin-top: 40px; }
}
