/* ===================================================================
   GESTIA ERP — LOGIN LIGHT PREMIUM STYLESHEET
   Modern Split-Screen — Clean & Bright
   =================================================================== */

:root {
    --primary-teal: #0d9488;
    --teal-deep: #0f766e;
    --teal-accent: #14b8a6;
    --teal-light: #ccfbf1;
    --teal-50: #f0fdfa;
    --bg-page: #f1f5f9;
    --bg-brand: linear-gradient(160deg, #0d9488 0%, #0f766e 40%, #115e59 100%);
    --bg-form: #ffffff;
    --text-main: #1e293b;
    --text-muted: #94a3b8;
    --text-secondary: #64748b;
    --white: #ffffff;
    --radius-xl: 1.75rem;
    --radius-lg: 1.25rem;
    --radius-md: 0.875rem;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

body.login-body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-page);
    background-image:
        radial-gradient(at 20% 20%, rgba(20, 184, 166, 0.06) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(99, 102, 241, 0.04) 0px, transparent 50%);
}

/* ===== MAIN CONTAINER ===== */
.split-login-container {
    display: flex;
    width: 100%;
    max-width: 1020px;
    min-height: 580px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 20px;
    position: relative;
    z-index: 10;
    background: var(--white);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 10px 30px -5px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

.animate-fade-in {
    animation: containerIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes containerIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== BRAND SIDE (LEFT) ===== */
.brand-side {
    flex: 1;
    background: var(--bg-brand);
    position: relative;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.brand-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Brand Text */
.brand-side h1.display-5 {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.text-teal-accent {
    color: var(--teal-light) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Company Info Card — Frosted */
.company-info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: auto;
    margin-bottom: 1.25rem;
    transition: background 0.3s ease;
}

.company-info-card:hover {
    background: rgba(255, 255, 255, 0.14);
}

.company-name {
    letter-spacing: 0.3px;
    font-size: 1rem;
    color: #fff;
}

.company-info-card .bi {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}

.company-info-card span {
    font-size: 0.85rem;
}

/* Tech Badges */
.bg-teal-soft {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.tech-badges .badge {
    font-size: 0.675rem;
    padding: 0.35rem 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Decorative Circles */
.decoration-circle-1 {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
    border-radius: 50%;
}

.decoration-circle-2 {
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
    border-radius: 50%;
}

/* Subtle pattern on brand side */
.brand-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    z-index: 1;
    pointer-events: none;
}

/* ===== FORM SIDE (RIGHT) ===== */
.form-side {
    flex: 1;
    background: var(--bg-form);
    padding: 3rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-box {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 2;
}

/* Login Header */
.login-header h2 {
    font-size: 1.6rem;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

.login-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== FORM INPUTS ===== */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container>i {
    position: absolute;
    left: 1.1rem;
    color: #b0bec5;
    font-size: 1rem;
    transition: color 0.3s ease;
    z-index: 2;
}

.input-container .form-control {
    padding: 0.8rem 1rem 0.8rem 2.85rem;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    width: 100%;
}

.input-container .form-control::placeholder {
    color: #c4cbda;
    font-weight: 400;
}

.input-container .form-control:focus {
    background-color: #fff;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
    outline: none;
}

.input-container:focus-within>i {
    color: var(--primary-teal);
}

/* ===== SUBMIT BUTTON ===== */
.btn-teal-submit {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-deep) 100%);
    border: none;
    color: white;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
}

.btn-teal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.3);
    color: white;
}

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

.shadow-teal {
    box-shadow: 0 4px 12px -3px rgba(13, 148, 136, 0.2);
}

/* ===== CHECKBOX ===== */
.form-check-input {
    width: 1rem;
    height: 1rem;
    cursor: pointer;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    border-color: var(--primary-teal);
    outline: none;
}

.cursor-pointer {
    cursor: pointer;
}

/* ===== ERROR MESSAGE ===== */
.error-msg {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    font-size: 0.85rem;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-4px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(4px);
    }
}

/* ===== STAGGERED ANIMATIONS ===== */
.login-box .login-header {
    animation: staggerIn 0.5s ease both;
    animation-delay: 0.15s;
}

.login-box form>div:nth-child(1) {
    animation: staggerIn 0.5s ease both;
    animation-delay: 0.25s;
}

.login-box form>div:nth-child(2) {
    animation: staggerIn 0.5s ease both;
    animation-delay: 0.35s;
}

.login-box form>div:nth-child(3) {
    animation: staggerIn 0.5s ease both;
    animation-delay: 0.4s;
}

.login-box form>button {
    animation: staggerIn 0.5s ease both;
    animation-delay: 0.5s;
}

@keyframes staggerIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
.d-none {
    display: none !important;
}

.d-lg-flex {
    display: none !important;
}

.d-lg-none {
    display: none !important;
}

.d-md-none {
    display: none !important;
}

@media (min-width: 992px) {
    .d-lg-flex {
        display: flex !important;
    }

    .d-none.d-lg-flex {
        display: flex !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .d-lg-none {
        display: block !important;
    }

    .split-login-container {
        max-width: 430px;
        min-height: auto;
    }

    .form-side {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .split-login-container {
        margin: 15px;
        border-radius: var(--radius-lg);
    }

    .form-side {
        padding: 2rem 1.5rem;
    }

    .login-header h2 {
        font-size: 1.4rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-start {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-white {
    color: #fff !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.small {
    font-size: 0.875em !important;
}

.lead {
    font-size: 1.05rem;
    font-weight: 300;
}

.display-5 {
    font-size: 2.25rem;
    font-weight: 700;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-auto {
    margin-top: auto !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.w-100 {
    width: 100% !important;
}

.h3 {
    font-size: 1.6rem;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.rounded-3 {
    border-radius: 0.5rem !important;
}

.rounded-4 {
    border-radius: var(--radius-md) !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.align-middle {
    vertical-align: middle !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.flex-column {
    flex-direction: column !important;
}

.border-0 {
    border: 0 !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-label {
    font-size: 0.85rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
}