/* ============================================================
   auth.css — Turbo HRMS login / auth pages
   Split-panel layout: branding left, form right.
   Logo, notice statements, and footer centered in the panel.
   Left panel hidden on small screens.
   ============================================================ */

/* ---------- Google Font (Inter) ---------- */
/* Loaded via partials/styles.blade.php      */

/* ---------- Reset ---------- */
.auth-split-page *,
.auth-split-page *::before,
.auth-split-page *::after {
    box-sizing: border-box;
}

/* ---------- Page shell ---------- */
.auth-split-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
}

/* ---------- Split wrapper ---------- */
.auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ============================================================
   LEFT — branding panel
   ============================================================ */
.auth-split-branding {
    flex: 0 0 42%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Background image is injected inline via the Blade partial */
    background-color: #1a3a5c;
    background-size: cover;
    background-position: left bottom;
    background-repeat: no-repeat;
}

/* Tinted overlay sits between the photo and the content */
.auth-split-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.82) 35%,
        rgba(255, 255, 255, 0.58) 65%,
        rgba(255, 255, 255, 0.76) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.auth-split-branding-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Brand panel: logo + statements centered; footer pinned to bottom */
.auth-brand-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 2.5rem 2.25rem;
}

.auth-brand-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    transform: translateY(-80px);
}

/* ---------- Logo ---------- */
.auth-brand-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-brand-logo img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ---------- Center block: statements ---------- */
.auth-brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
}

/* ---------- Statements (notice list) ---------- */
.auth-brand-statements {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
}

.auth-brand-statements li {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    text-align: left;
    max-width: 100%;
}

.auth-brand-statement-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(26, 58, 92, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a5c;
    font-size: 13px;
    margin-top: 1px;
}

.auth-brand-statement-text {
    font-size: 13.5px;
    color: #243c56;
    line-height: 1.5;
    font-weight: 400;
}

/* ---------- Footer — pinned to bottom ---------- */
.auth-brand-footer {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
}

.auth-brand-footer-text {
    font-size: 12.5px;
    color: rgba(26, 58, 92, 0.45);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* ============================================================
   RIGHT — form panel
   ============================================================ */
.auth-split-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #ffffff;

    /* Subtle left border separating panels */
    border-left: 1px solid #e5e7eb;
}

.auth-split-form-inner {
    width: 100%;
    max-width: 360px;
}

/* Logo on form panel — hidden when branding panel is visible */
.auth-mobile-logo {
    display: none;
}

.auth-mobile-logo .auth-brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-mobile-logo img {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ---------- Form header ---------- */
.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.4px;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.auth-form-subtitle {
    font-size: 13.5px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ---------- Form ---------- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Input wrapper */
.input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

/* Override AdminLTE form-control for auth pages */
.auth-split-form .form-control {
    height: 44px;
    padding: 0 14px 0 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13.5px;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    color: #111827;
    background: #f9fafb;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-split-form .form-control:focus {
    border-color: #1a3a5c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.09);
    outline: none;
}

.auth-split-form .form-control.is-invalid {
    border-color: #ef4444;
    background: #fff5f5;
}

.auth-split-form .form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.auth-split-form .form-control::placeholder {
    color: #9ca3af;
}

/* Validation feedback */
.auth-split-form .invalid-feedback {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: block;
}

/* ---------- Remember + Submit row ---------- */
.auth-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

/* iCheck override — plain checkbox for auth */
.auth-form-actions .icheck-primary {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    margin: 0;
    min-height: 0;
}

.auth-form-actions .icheck-primary label {
    font-size: 12.5px;
    color: #6b7280;
    padding: 0;
    cursor: pointer;
    user-select: none;
    line-height: 1;
}

/* Sign In button */
.btn-sign-in {
    height: 40px;
    padding: 0 24px;
    background: #1a3a5c;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    cursor: pointer;
    letter-spacing: 0.15px;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.btn-sign-in:hover {
    background: #15304f;
}

.btn-sign-in:active {
    transform: scale(0.98);
}

.btn-sign-in:focus-visible {
    outline: 2px solid #1a3a5c;
    outline-offset: 3px;
}

/* ---------- reCAPTCHA ---------- */
.auth-form .form-group {
    margin-bottom: 0;
}

/* ---------- Form footer (forgot password) ---------- */
.auth-form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-form-footer a {
    font-size: 12.5px;
    color: #1a3a5c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.12s ease;
}

.auth-form-footer a:hover {
    color: #0f2640;
    text-decoration: underline;
}

/* ============================================================
   Responsive — tablet / mobile
   ============================================================ */

/* Narrow desktop: reduce branding panel */
@media (max-width: 900px) {
    .auth-split-branding {
        flex: 0 0 38%;
    }

    .auth-brand-panel {
        padding: 2rem 1.75rem;
    }
}

/* Tablet / mobile: hide branding panel, show logo on form side */
@media (max-width: 680px) {
    .auth-split-branding {
        display: none;
    }

    .auth-split-form {
        flex: 1;
        width: 100%;
        border-left: none;
        padding: 1.5rem 1.25rem;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .auth-split-form-inner {
        max-width: 100%;
    }

    .auth-mobile-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 1.75rem;
    }

    .auth-form-header {
        margin-bottom: 1.25rem;
    }

    .auth-form-title {
        font-size: 19px;
        margin-bottom: 3px;
    }

    .auth-form {
        gap: 11px;
    }

    .auth-split-form .form-control {
        height: 42px;
        font-size: 13px;
    }

    .auth-form-footer {
        margin-top: 1.1rem;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .auth-split-form {
        padding: 1.25rem 1rem;
    }

    .auth-form-title {
        font-size: 18px;
    }

    .btn-sign-in {
        padding: 0 16px;
        font-size: 13px;
    }
}