/* Font loaded via admin/components/fonts.php on login page */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

.pl-login-page {
    min-height: 100vh;
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--pl-bg, #f4f6f8);
    color: var(--pl-text, #111827);
}

.pl-login-shell {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
}

/* ── Hero panel ── */
.pl-login-hero {
    position: relative;
    background:
        linear-gradient(145deg, rgba(15, 118, 110, 0.94) 0%, rgba(13, 148, 136, 0.88) 45%, rgba(17, 94, 89, 0.92) 100%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08), transparent 35%);
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    overflow: hidden;
}

.pl-login-hero.has-photo {
    background-color: #0f766e;
}

.pl-login-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 118, 110, 0.72) 100%);
    pointer-events: none;
}

.pl-login-hero.has-photo .pl-login-hero-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 118, 110, 0.82) 100%);
}

.pl-login-hero-content {
    position: relative;
    z-index: 1;
    max-width: 460px;
    animation: plLoginFadeUp 0.6s ease both;
}

.pl-login-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pl-login-hero-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

.pl-login-hero-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.92;
    margin: 0 0 1.25rem;
}

.pl-login-hero-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.pl-login-hero-features li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.875rem;
    opacity: 0.95;
}

.pl-login-hero-features i {
    width: 18px;
    text-align: center;
    color: #99f6e4;
}

/* ── Form panel ── */
.pl-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.pl-login-card {
    width: 100%;
    max-width: 420px;
    animation: plLoginFadeUp 0.65s ease 0.08s both;
}

.pl-login-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.pl-login-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--pl-primary-soft, #ecfdf5);
    border: 1px solid rgba(15, 118, 110, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pl-login-brand-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pl-login-brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pl-text, #111827);
    line-height: 1.2;
}

.pl-login-brand-sub {
    font-size: 0.8125rem;
    color: var(--pl-text-muted, #6b7280);
    margin-top: 0.1rem;
}

.pl-login-head {
    margin-bottom: 1.5rem;
}

.pl-login-title {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    color: var(--pl-text, #111827);
}

.pl-login-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: var(--pl-text-muted, #6b7280);
    line-height: 1.5;
}

.pl-login-form .pl-form-field {
    margin-bottom: 1rem;
}

.pl-login-form .pl-form-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pl-text-secondary, #374151);
    margin-bottom: 0.4rem;
}

.pl-login-input-wrap {
    position: relative;
}

.pl-login-input-wrap > i.fa-user,
.pl-login-input-wrap > i.fa-lock {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pl-text-muted, #9ca3af);
    font-size: 0.875rem;
    pointer-events: none;
}

.pl-login-input-wrap .form-control {
    border: 1px solid var(--pl-border, #e5e7eb);
    border-radius: 10px;
    min-height: 46px;
    padding: 0.625rem 2.75rem 0.625rem 2.5rem;
    font-size: 0.9375rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pl-login-input-wrap .form-control:focus {
    border-color: var(--pl-primary, #0f766e);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
    outline: none;
}

.pl-login-toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--pl-text-muted, #9ca3af);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pl-login-toggle-pass:hover {
    background: var(--pl-surface-2, #f3f4f6);
    color: var(--pl-primary, #0f766e);
}

.pl-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0 1.25rem;
}

.pl-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    color: var(--pl-text-muted, #6b7280);
    cursor: pointer;
    margin: 0;
}

.pl-login-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--pl-primary, #0f766e);
}

.pl-login-submit {
    width: 100%;
    min-height: 46px;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 10px;
    gap: 0.5rem;
}

.pl-login-submit:disabled {
    opacity: 0.75;
    cursor: wait;
}

.pl-login-footer {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--pl-text-muted, #9ca3af);
}

@keyframes plLoginFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .pl-login-shell {
        grid-template-columns: 1fr;
    }

    .pl-login-hero {
        min-height: 220px;
        padding: 1.75rem;
        align-items: flex-end;
    }

    .pl-login-hero-title {
        font-size: 1.5rem;
    }

    .pl-login-hero-text,
    .pl-login-hero-features {
        display: none;
    }

    .pl-login-panel {
        padding: 1.5rem 1rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .pl-login-hero {
        min-height: 160px;
        padding: 1.25rem;
    }

    .pl-login-title {
        font-size: 1.375rem;
    }
}
