/**
 * Login page (auth/login) — Sayas Group ERP
 */
:root {
    --sayas-navy: #032d5c;
    --sayas-navy-mid: #0a4a7a;
    --sayas-gold: #c9a227;
    --sayas-gold-light: #e5cf7a;
    --sayas-muted: #64748b;
    --sayas-line: rgba(3, 45, 92, 0.1);
    --font-ui: "Montserrat", system-ui, sans-serif;
}

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

body {
    margin: 0;
    min-height: 100vh;
    padding: 20px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
    background:
        radial-gradient(ellipse 120% 80% at 10% 20%, rgba(201, 162, 39, 0.09), transparent 50%),
        radial-gradient(ellipse 90% 70% at 90% 80%, rgba(3, 45, 92, 0.08), transparent 45%),
        linear-gradient(160deg, #e6eaef 0%, #f3efe6 42%, #dde5ee 100%);
}

/* Card shell */
.container-wrapper {
    width: 100%;
    max-width: 960px;
    min-height: 520px;
    display: flex;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow:
        0 4px 7px rgba(3, 45, 92, 0.04),
        0 20px 40px -12px rgba(3, 45, 92, 0.16),
        inset 0 0 0 1px rgba(3, 45, 92, 0.04);
}

/* Left: image + footer band */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    overflow: hidden;
    background: var(--sayas-navy);
}

.left-panel__visual {
    position: relative;
    flex: 1 1 56%;
    min-height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.left-panel__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.left-panel__visual::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(3, 45, 92, 0.12) 55%, rgba(3, 45, 92, 0.35));
}

.left-panel__inner {
    flex: 0 0 auto;
    padding: 1.25rem 1.5rem 1.5rem;
    background: linear-gradient(180deg, #043057, var(--sayas-navy));
    border-top: 2px solid var(--sayas-gold);
    box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.1);
}

.left-panel__title {
    margin: 0 0 0.45rem;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #fff;
}

.left-panel__title span {
    font-weight: 600;
    color: var(--sayas-gold-light);
}

.left-panel__tagline {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.left-panel__divider {
    width: 2rem;
    height: 2px;
    margin: 0 0 0.65rem;
    border-radius: 1px;
    background: var(--sayas-gold);
}

.left-panel__note {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
}

.left-panel__note a {
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(201, 162, 39, 0.85);
    text-underline-offset: 2px;
}

.left-panel__note a:hover {
    color: var(--sayas-gold-light);
    text-decoration-color: var(--sayas-gold);
}

/* Right: form */
.right-panel {
    position: relative;
    flex: 0.95;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 36px 40px;
    border-left: 1px solid var(--sayas-line);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 55%, #f1f5f9 100%);
}

.right-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    pointer-events: none;
    opacity: 0.65;
    background: linear-gradient(180deg, var(--sayas-gold), transparent 72%);
}

.right-panel__inner {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.right-panel__eyebrow {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    color: var(--sayas-muted);
}

.right-panel h3 {
    margin: 0 0 22px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: center;
    color: var(--sayas-navy);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
}

.logo-container img {
    width: auto;
    max-height: 116px;
}

.icon-input {
    position: relative;
    margin-bottom: 4px;
}

.icon-input input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid var(--sayas-line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--sayas-navy);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon-input input::placeholder {
    color: #94a3b8;
}

.icon-input input:hover {
    border-color: rgba(3, 45, 92, 0.18);
}

.icon-input input:focus {
    outline: none;
    border-color: var(--sayas-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.16);
}

.icon-input i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--sayas-muted);
}

.btn-login {
    width: 100%;
    margin-top: 16px;
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(145deg, var(--sayas-navy-mid) 0%, var(--sayas-navy) 45%, #021a33);
    box-shadow: 0 3px 12px rgba(3, 45, 92, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(3, 45, 92, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-login:active {
    transform: translateY(0);
}

.small-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--sayas-muted);
}

.small-options a {
    font-weight: 700;
    color: var(--sayas-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 162, 39, 0.5);
    transition: color 0.15s ease;
}

.small-options a:hover {
    color: var(--sayas-gold);
}

.alert-danger {
    margin-top: 10px;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

@media (max-width: 992px) {
    .container-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .right-panel {
        width: 100%;
        padding: 32px 24px 36px;
        border-top: 1px solid var(--sayas-line);
        border-left: none;
    }

    .right-panel::before {
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--sayas-gold), transparent 72%);
    }
}
