:root {
    --navy-dark: var(--bs-primary-rgb);
    --navy: var(--bs-primary-contrast);
    --navy-light: #1b3a7a;
    --accent-blue: var(--bs-primary);
    --accent-blue-hover: var(--bs-secondary);
    --muted: var(--bs-menu-color);
    --border-color: var(--bs-primary);
}

body {
    font-family:
        "Segoe UI",
        -apple-system,
        BlinkMacSystemFont,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 1.25rem;
    margin: 0;
}

/* Card Container & SVG Background Decors */
.auth-card {
    width: 100%;
    max-width: 880px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

body:before {
    width: 180px;
    height: 180px;
    content: " ";
    position: absolute;
    z-index: 0;
    top: 20px;
    left: 18%;
    background-image: url("./card.svg");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

body:after {
    width: 160px;
    height: 160px;
    content: " ";
    position: absolute;
    z-index: 0;
    bottom: 50px;
    right: 5%;
    background-image: url("./card-end.svg");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Brand Bar */
.brand-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem 1.5rem 0rem; 
    position: relative;
    z-index: 1;
}

.brand-bar .shield-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.brand-bar .brand-name {
    font-weight: 700;
    color: var(--navy-dark);
    font-size: 1rem;
}

/* LEFT PANEL */
.panel-left {
    background: linear-gradient(
        160deg,
        var(--navy-dark) 0%,

        var(--navy-light) 100%
    );
    color: #ffffff;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.panel-left .badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.panel-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0.9rem;
    margin-bottom: 0.9rem;
}

.panel-left .tagline {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.panel-left p.desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.panel-left .illustration {
    width: 100%;
    max-width: 160px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* RIGHT PANEL */
.panel-right {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.panel-right h1 {
font-size: 30px;
    font-weight: 700;
    color: #1b1f2b;
    margin-bottom: 0.25rem;
}

.panel-right p.subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Form & Inputs */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333a48;
    margin-bottom: 4px;
}

.input-group-custom {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-custom .form-control {
    padding: 8px 36px 8px 40px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #f8f9fc;
    font-size: 0.875rem;
}

.input-group-custom .form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(31, 93, 240, 0.12);
    background: #fff;
}

.input-group-custom .icon-left {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 0.875rem;
    z-index: 2;
}

.input-group-custom .icon-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-primary);
    font-size: 0.875rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 2;
}

.form-check-label {
    font-size: 0.85rem;
    color: #4b5262;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
    color: var(--accent-blue-hover);
}

.btn-login {
    background: var(--accent-blue);
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    transition: background 0.15s ease;
}

.btn-login:hover {
    background: var(--accent-blue-hover);
    color: #fff;
}

.invalid-feedback {
    margin-top: 4px;
}

.footer-note {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-note  a{
    color: var(--bs-primary);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 767.98px) {
    .auth-card {
        max-width: 480px;
    }

    .panel-left {
        display: none; /* Collapses branding panel on smaller screens */
    }

    .panel-right {
        padding: 1.75rem 1.25rem;
    }

    .auth-card:before,
    .auth-card:after {
        display: none; /* Prevents overflow/scrollbars on small devices */
    }
}
