/* ============================================
   Login Page — Soft Clinical Design
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #084572;
    --primary-dark: #06375B;
    --accent: #148866;
    --accent-deep: #3f7a1f;
    --cyan: #2d6187;
    --dark-bg: #09090f;
    --text-dark: #0f0c29;
    --text-muted: #9ca3af;
    --border: #eef0f8;
    --error: #ef4444;
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    background: var(--dark-bg);
}

/* the shared auth layout wraps @yield('content') in Bootstrap's .container-fluid,
   whose default side padding showed through as bars against this page's light bg */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background-image: url('../images/login_bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-color: #eef3f5;
}

/* ================================================
   LEFT PANEL — Editorial, on the shared bg image
   ================================================ */
.login-left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 50px 60px 80px;
    position: relative;
}

.left-panel-content {
    position: relative;
    z-index: 1;
    text-align: left;
    color: var(--text-dark);
    max-width: 500px;
    animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo box */
.lp-logo-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 26px;
    overflow: hidden;
}
.lp-logo-box img { height: auto; max-width: 220px; max-height: 68px; position: relative; z-index: 1; }

/* Badge */
.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(146, 187, 61,0.14);
    border: 1px solid rgba(146, 187, 61,0.4);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}
.lp-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px rgba(146, 187, 61,0.7);
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* Heading */
.lp-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: var(--text-dark);
}
.lp-title .accent { color: var(--accent); }

.lp-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 40px;
}

/* Feature list — soft icon circles */
.lp-features { max-width: 400px; display: flex; flex-direction: column; gap: 20px; }

.lp-feat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    transition: transform 0.25s;
}
.lp-feat-card:hover { transform: translateX(4px); }

.lp-feat-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}
.lp-feat-icon.c-indigo  { background: rgba(146, 187, 61,0.18); color: var(--accent); }
.lp-feat-icon.c-purple  { background: rgba(45, 97, 135,0.16); color: var(--cyan); }
.lp-feat-icon.c-cyan    { background: rgba(8, 69, 114,0.12);  color: var(--primary); }
.lp-feat-icon.c-navy    { background: rgba(6, 55, 91,0.13);   color: var(--primary-dark); }

.lp-feat-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.lp-feat-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ================================================
   RIGHT PANEL — Floating card on the shared bg image
   ================================================ */
.login-right-panel {
    width: 540px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
}

.login-form-box {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 30px;
    padding: 44px 40px;
    text-align: center;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow:
        0 30px 60px -24px rgba(8, 69, 114, 0.18),
        0 12px 24px -16px rgba(8, 69, 114, 0.1);
    animation: fadeUp 0.9s 0.15s ease both;
}

/* Icon badge above the eyebrow */
.rp-icon-badge {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(146, 187, 61,0.14);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 18px;
}

/* Mobile-only brand mark shown when the left panel is hidden */
.rp-logo-mobile {
    display: none;
    justify-content: center;
    margin-bottom: 22px;
}
.rp-logo-mobile img {
    height: 42px;
    width: auto;
}

.rp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b7c6d1;
}
.rp-divider span { flex: 1; height: 1px; background: var(--border); }

.rp-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.76rem;
    color: #6b7280;
    font-weight: 500;
}
.rp-secure-note i {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form header */
.form-header { margin-bottom: 36px; }

.form-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin-bottom: 10px;
}
.form-eyebrow .ln {
    width: 18px; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.form-header h2 .gradient-word {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ---- Floating-label fields ---- */
.form-field {
    margin-bottom: 20px;
}

.float-field {
    position: relative;
}

.float-field input {
    width: 100%;
    height: 56px;
    background: #f8f9ff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px 8px 46px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    -webkit-appearance: none;
    appearance: none;
    font-weight: 500;
}

/* placeholder must exist but be invisible so :not(:placeholder-shown) triggers */
.float-field input::placeholder { color: transparent; }

.float-field:focus-within input {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8, 69, 114,0.1);
}

.float-field input.is-error { border-color: var(--error); background: #fff5f5; }
.float-field input.is-error:focus { box-shadow: 0 0 0 4px rgba(239,68,68,0.1); }

/* floating label */
.float-field label {
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.88rem;
    color: #b0b8cc;
    font-weight: 500;
    pointer-events: none;
    transition: top 0.22s ease, font-size 0.22s ease, color 0.22s ease, transform 0.22s ease;
    white-space: nowrap;
}

.float-field:focus-within label,
.float-field input:not(:placeholder-shown) ~ label {
    top: 14px;
    transform: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--primary);
}

.float-field input.is-error ~ label { color: var(--error); }

/* field icon */
.float-field .fi {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #c8cfe0;
    pointer-events: none;
    transition: color 0.22s;
}
.float-field:focus-within .fi { color: var(--primary); }

/* password toggle */
.float-field .pw-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #c8cfe0;
    font-size: 0.88rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
}
.float-field .pw-toggle:hover { color: var(--primary); }
.float-field input.has-toggle { padding-right: 46px; }

/* field error message */
.field-error {
    font-size: 0.76rem;
    color: var(--error);
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* ---- Lockout alert ---- */
.lockout-alert {
    background: linear-gradient(135deg, #fef2f2, #fff5f5);
    border: 1.5px solid #fecaca;
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 0.84rem;
    color: #dc2626;
    text-align: center;
    font-weight: 500;
}
.lockout-alert strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 4px;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* ---- Form options row ---- */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.custom-check {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
}
.custom-check input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    flex-shrink: 0;
}
.custom-check input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}
.custom-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 6px; height: 10px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}
.custom-check span {
    font-size: 0.84rem;
    color: #6b7280;
    font-weight: 500;
}

.forgot-link {
    font-size: 0.84rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.forgot-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---- Submit button ---- */
.btn-login {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-login::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.22s;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(8, 69, 114,0.55);
}
.btn-login:hover::before { opacity: 1; }
.btn-login:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(8, 69, 114,0.35); }

.btn-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.22s;
}
.btn-login:hover .btn-arrow { transform: translateX(4px); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 960px) {
    .login-left-panel { display: none; }
    .login-right-panel { width: 100%; }
    .rp-logo-mobile { display: flex; }
}
@media (max-width: 480px) {
    .login-right-panel { padding: 28px 16px; }
    .login-form-box { padding: 34px 24px; border-radius: 20px; }
    .form-header h2 { font-size: 1.7rem; }
}
