/* ============================================================
   AUTH FULLSCREEN OVERLAY
   Forces auth pages above the Portalium navbar/layout.
   ============================================================ */
.auth-fullscreen-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: row !important;
    background-color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.auth-fullscreen-wrapper--flipped {
    flex-direction: row-reverse !important;
}

/* ============================================================
   SINGLE LAYOUT (Centered Card on Dark Green)
   ============================================================ */
.auth-fullscreen-wrapper--single {
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem !important;
    overflow: hidden !important;
}

.auth-single-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25);
    padding: 1.5rem 1.75rem;
    border: 0;
    overflow: visible;
}

.auth-single-card--wide {
    max-width: 540px;
}

/* Dark-theme feature cards (matching split-layout dark-green style) */
.auth-feature-card--dark {
    background-color: #042a1d;
    border-color: rgba(120, 214, 75, 0.2);
}

.auth-feature-card--dark .auth-feature-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.6875rem;
}

.auth-feature-card--dark .auth-feature-text {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.625rem;
}

/* Compact feature grid for inside single card */
.auth-feature-grid--compact {
    gap: 0.375rem;
}

.auth-feature-grid--compact .auth-feature-card {
    padding: 0.4rem 0.625rem;
    gap: 0.125rem;
}

/* Horizontal row layout (4 columns) for feature grid */
.auth-feature-grid--row {
    grid-template-columns: repeat(4, 1fr);
}

/* Larger logo for single layout */
.auth-icon-xl {
    width: 64px;
    height: 64px;
}

.auth-icon-xxl {
    width: 52px;
    height: 52px;
}

/* ============================================================
   STANDARDIZED LOGO BLOCK — used on all auth card tops
   Small hex icon + "Portalium" text side-by-side
   ============================================================ */
.auth-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-logo-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.auth-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

/* Brand row: logo + text side by side (larger variant) */
.auth-single-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.auth-single-brand-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* ============================================================
   FLOATING WATERMARK LABELS
   ============================================================ */
.auth-watermark {
    position: absolute;
    z-index: 1;
    color: rgba(255, 255, 255, 0.07);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.auth-watermark--tl {
    top: 8%;
    left: 5%;
    transform: rotate(-12deg);
}

.auth-watermark--tr {
    top: 12%;
    right: 4%;
    transform: rotate(8deg);
}

.auth-watermark--bl {
    bottom: 10%;
    left: 6%;
    transform: rotate(6deg);
}

.auth-watermark--br {
    bottom: 8%;
    right: 3%;
    transform: rotate(-10deg);
}

@media (max-width: 991.98px) {
    .auth-watermark {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-watermark {
        display: none;
    }
}

.auth-single-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0.5rem;
}

/* Icons should appear dark on the white card */
.auth-icon-dark {
    filter: brightness(0) !important;
}

.auth-icon-lg {
    width: 48px;
    height: 48px;
}

/* Feature highlights row inside single card */
.auth-single-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.auth-single-feature {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background-color: #f0fdf4;
    border-radius: 2rem;
    font-size: 0.75rem;
}

.auth-single-feature-title {
    color: #166534;
    font-weight: 600;
}

/* Circular footer badges */
.auth-single-footer-badges {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.auth-single-footer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.auth-single-footer-badge:hover {
    background-color: #e2e8f0;
}

.auth-single-footer-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0);
}

/* Responsive: on small screens single card takes full width */
@media (max-width: 575.98px) {
    .auth-single-card,
    .auth-single-card--wide {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 1.5rem;
    }

    .auth-fullscreen-wrapper--single {
        padding: 0 !important;
    }
}

/* ============================================================
   DEEP EMERALD GREEN OVERRIDE
   ============================================================ */
.mesh-gradient {
    background-color: #042a1d !important;
    background-image:
        radial-gradient(at 0% 0%, hsla(152, 60%, 10%, 1) 0, transparent 50%),
        radial-gradient(at 50% 50%, hsla(152, 55%, 16%, 1) 0, transparent 55%),
        radial-gradient(at 100% 0%, hsla(152, 50%, 12%, 1) 0, transparent 50%),
        radial-gradient(at 80% 100%, hsla(152, 60%, 8%, 1) 0, transparent 45%) !important;
}

/* Clean dark-green solid background for single layouts */
.auth-dark-bg {
    background-color: #1A531C !important;
}

/* ============================================================
   LEFT PANEL (dark branding column)
   ============================================================ */
.auth-left-panel {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 3rem !important;
}

.auth-left-panel .auth-brand {
    position: absolute !important;
    top: 15% !important;
    left: 10% !important;
    z-index: 10 !important;
}

@media (max-width: 991.98px) {
    .auth-left-panel {
        display: none !important;
    }
}

/* ============================================================
   RIGHT PANEL (white form column)
   ============================================================ */
.auth-right-panel {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 2rem !important;
    overflow-y: auto !important;
    background-color: #fff !important;
}

/* ============================================================
   FORM INNER CONTAINERS
   ============================================================ */
.auth-form-inner {
    width: 100%;
    max-width: 28rem;
}

.auth-form-inner--wide {
    width: 100%;
    max-width: 32rem;
}

/* ============================================================
   SINGLE LAYOUT — Dark BG + White Card + Feature Boxes
   Full-viewport dark-green background, centered white card,
   prominent feature boxes below, top-left logo with padding.
   ============================================================ */

/* Main wrapper: fixed fullscreen, zero scroll */
.auth-sl-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #1A531C !important;
}

/* ---- Top-Left Logo Header (down & right with breathing room) ---- */
.auth-sl-header {
    position: absolute;
    top: 2rem;
    left: 2.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.auth-sl-header-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

.auth-sl-header-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-transform: uppercase;
}

/* ---- Vertical content column: card + features ---- */
.auth-sl-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 560px;
    padding: 0 1rem;
}

/* ---- Pure White Form Card ---- */
.auth-sl-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem 2.25rem;
    color: #1a1a1a;
}

.auth-sl-card--wide {
    max-width: 500px;
}

.auth-sl-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
}

.auth-sl-card-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: left;
}

/* ---- Form Elements (light-themed for white card) ---- */
.auth-sl-field {
    margin-bottom: 0.25rem;
}

.auth-sl-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #344054;
    margin-bottom: 0.3rem;
}

.auth-sl-input {
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #d0d5dd;
    background-color: #fff;
    padding: 0.625rem 0.875rem;
    color: #1a1a1a;
    font-size: 0.9375rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

.auth-sl-input::placeholder {
    color: #98a2b3;
}

.auth-sl-input:focus {
    border-color: #1A531C;
    box-shadow: 0 0 0 3px rgba(26, 83, 28, 0.2);
}

/* Remember Me row */
.auth-sl-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-sl-remember-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-sl-remember-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #344054;
    margin-bottom: 0;
    cursor: pointer;
}

.auth-sl-remember input[type="checkbox"] {
    accent-color: #1A531C;
}

/* ---- Buttons ---- */
.auth-sl-btn-primary {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: none;
    background-color: #1A531C;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.auth-sl-btn-primary:hover {
    background-color: #157347;
}

.auth-sl-btn-primary:active {
    transform: scale(0.98);
}

/* Social login button (light theme — gray border on white) */
.auth-sl-btn-social {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-radius: 0.375rem;
    border: 1px solid #d0d5dd;
    background-color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #344054;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.auth-sl-btn-social:hover {
    background-color: #f9fafb;
    border-color: #98a2b3;
    color: #1a1a1a;
    text-decoration: none;
}

/* OR divider */
.auth-sl-divider {
    display: flex;
    align-items: center;
}

.auth-sl-divider-line {
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

.auth-sl-divider-text {
    padding: 0 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #98a2b3;
    letter-spacing: 0.08em;
}

/* Links */
.auth-sl-link {
    font-weight: 600;
    color: #1A531C;
    text-decoration: none;
}

.auth-sl-link:hover {
    color: #157347;
    text-decoration: underline;
}

/* Footer texts */
.auth-sl-footer-text {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
}

.auth-sl-recaptcha-text {
    text-align: center;
    font-size: 0.6875rem;
    color: #adb5bd;
    line-height: 1.4;
}

/* Notice box */
.auth-sl-notice {
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    padding: 0.875rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
}

/* ---- Prominent Feature Boxes ---- */
.auth-sl-features {
    width: 100%;
    max-width: 560px;
}

.auth-sl-feature-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 40, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 0.75rem;
    height: 100%;
    border-radius: 0.375rem;
}

.auth-sl-feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.auth-sl-feature-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.auth-sl-feature-desc {
    font-size: 0.625rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ---- Responsive ---- */
@media (max-width: 575.98px) {
    .auth-sl-card {
        max-width: 100%;
        border-radius: 0 !important;
        padding: 1.5rem 1.25rem;
        box-shadow: none !important;
    }

    .auth-sl-card--wide {
        max-width: 100%;
    }

    .auth-sl-header {
        top: 1rem;
        left: 1rem;
    }

    .auth-sl-features {
        max-width: 100%;
    }

    .auth-sl-content {
        padding: 0;
    }
}

/* Yii2 error styling inside white card */
.auth-sl-card .help-block {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.auth-sl-card .has-error .auth-sl-input {
    border-color: #dc3545;
}

.auth-sl-card .has-error .auth-sl-label {
    color: #dc3545;
}

/* ---- Social Footer Icons (inside white card) ---- */
.auth-sl-social-footer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.auth-sl-social-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.auth-sl-social-footer-link:hover {
    background-color: #e2e8f0;
}

.auth-sl-social-footer-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0);
}
