:root {
    --primary: #123547;
    --primary-rgb: 18, 53, 71;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #e8ae62;
    --info: #3b82f6;
    --white: #ffffff;
    --text-1: #1e293b;
    --text-2: #64748b;
    --text-3: #94a3b8;
    --border: #e2e8f0;
    --bg-1: #f5f7fb;
    --bg-2: #ffffff;
    --shadow: rgba(0, 0, 0, 0.14);
    --gradient: linear-gradient(180deg, #007380 0%, #007380 100%);
    --gradient-radial: radial-gradient(1000px 600px at 50% 30%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 60%);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 48px;
}

html, body {
    height: 100%;
}

body {
    background: var(--bg-1);
    color: var(--text-1);
}

a {
    color: var(--primary);
}

a:hover {
    color: #0d2734;
}

.auth-wrap {
    min-height: 100vh;
}

.login-bg {
    background: url(../Images/chhatishgarh-bg.jpeg) center no-repeat fixed;
    background-size: cover;
    position: relative;
}

.login-overlay {
    background: rgba(1, 11, 5, 0.55);
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.auth-home-link {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-home-link:hover,
.auth-home-link:focus {
    color: #ffd46b;
    text-decoration: none;
}

.auth-home-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.auth-home-link:hover .auth-home-link-icon,
.auth-home-link:focus .auth-home-link-icon {
    transform: translateX(-3px);
}

.auth-home-link-text {
    line-height: 1;
    white-space: nowrap;
}

.left-pane {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: center;
    align-items: center;
    padding: 72px 16px 24px;
}

.form-card {
    width: 100%;
    max-width: 820px;
    background: var(--bg-2);
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: row;
    border-radius: 24px;
    overflow: hidden;
}

.logo-side {
    width: 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0, 115, 128, 0.06) 0%, rgba(0, 115, 128, 0.12) 100%);
}

.logo-side img {
    max-width: 90%;
    max-height: 240px;
}

.login-padding {
    width: 52%;
    padding: 30px;
}

.hint {
    font-size: 0.75rem;
    color: var(--text-2);
}

.btn-gradient {
    background: #306044;
    color: var(--white);
    border: 0;
    min-height: 44px;
    font-weight: 600;
}

.btn-gradient:hover,
.btn-gradient:focus {
    background: #173724;
    color: var(--white);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.21rem #123547 !important;
}

.form-control,
.form-select {
    background: var(--bg-2);
    border-color: var(--border);
    color: var(--text-1);
}

.form-control::placeholder {
    color: var(--text-3);
}

.text-muted {
    color: var(--text-2) !important;
}

.t-white {
    color: var(--white) !important;
    font-size: 12px;
}

.otp-digit {
    width: 48px;
    font-size: 1.25rem;
}

.otp-inputs .form-control {
    padding: 0.5rem;
}

.alert {
    border-left: 4px solid;
    border-radius: var(--radius);
}

.alert-success {
    border-left-color: var(--success);
}

.alert-danger {
    border-left-color: var(--danger);
}

.alert-info {
    border-left-color: var(--info);
}

.alert-warning {
    border-left-color: var(--warning);
}

@media (max-width: 991.98px) {
    .form-card {
        max-width: 460px;
        flex-direction: column;
    }

    .logo-side,
    .login-padding {
        width: 100%;
    }

    .logo-side {
        padding-bottom: 0;
    }

    .logo-side img {
        max-width: 220px;
        max-height: 120px;
    }
}

@media (max-width: 575.98px) {
    .auth-home-link {
        top: 12px;
        left: 12px;
        font-size: 0.92rem;
    }

    .left-pane {
        padding-top: 60px;
    }

    .login-padding {
        padding: 22px 18px;
    }

    .otp-digit {
        width: 40px;
    }
}
