:root {
    --background: 36 43% 97%;
    --foreground: 217 38% 14%;
    --card: 0 0% 100%;
    --card-foreground: 217 38% 14%;
    --primary: 219 47% 20%;
    --primary-foreground: 36 43% 97%;
    --muted: 36 20% 93%;
    --muted-foreground: 217 12% 42%;
    --accent: 43 62% 44%;
    --destructive: 8 70% 45%;
    --border: 36 18% 88%;
    --input: 36 18% 88%;
    --ring: 219 47% 20%;
    --font-heading: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.025em;
    font-weight: 700;
    color: hsl(var(--foreground));
}

a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: hsl(var(--accent));
}

.fw-extrabold {
    font-weight: 800 !important;
}

.form-label {
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.bg-background {
    background-color: hsl(var(--background)) !important;
}

.bg-card {
    background-color: hsl(var(--card)) !important;
}

.bg-primary-custom {
    color: hsl(var(--primary-foreground)) !important;
    background-color: hsl(var(--primary)) !important;
}

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

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

.text-primary-custom {
    color: hsl(var(--primary)) !important;
}

.text-primary-custom:hover {
    color: hsl(var(--accent)) !important;
}

.text-accent-custom {
    color: hsl(var(--accent)) !important;
}

.text-accent-custom:hover {
    color: hsl(var(--primary)) !important;
}

.border-border {
    border-color: hsl(var(--border)) !important;
}

.border-input {
    border-color: hsl(var(--input)) !important;
}

.tracking-tight {
    letter-spacing: -0.025em !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.font-medium {
    font-weight: 500 !important;
}

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

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

/* ==========================================================================
   Split Auth Page Shell & Left Image-Overlay Showcase
   ========================================================================== */
.auth-page-main {
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.08), transparent 40%),
        radial-gradient(circle at 88% 82%, rgba(27, 42, 74, 0.07), transparent 42%),
        hsl(var(--background));
}

.footer-custom {
    margin-top: 0 !important;
}

.auth-split-shell {
    width: 100%;
    max-width: 1020px;
    background: #ffffff;
    border: 1px solid rgba(27, 42, 74, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

.auth-showcase-panel {
    position: relative;
    width: 100%;
    min-height: 100%;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.auth-showcase-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

.auth-split-shell:hover .auth-showcase-bg {
    transform: scale(1.07);
}

.auth-showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        165deg,
        rgba(15, 23, 42, 0.90) 0%,
        rgba(27, 42, 74, 0.86) 55%,
        rgba(15, 23, 42, 0.95) 100%
    );
    z-index: 1;
}

.auth-showcase-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.auth-showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-showcase-title {
    color: #ffffff !important;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.auth-showcase-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.6;
}

.auth-showcase-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-showcase-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.auth-showcase-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.2);
    border: 1px solid rgba(250, 204, 21, 0.45);
    color: #facc15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.auth-showcase-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Right Form Panel & Controls
   ========================================================================== */
.auth-form-panel {
    padding: 2.5rem 2.75rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.auth-form-inner {
    max-width: 460px;
    margin: 0 auto;
}

.auth-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, hsl(var(--primary)) 0%, #273e6b 100%);
    color: #facc15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(27, 42, 74, 0.16);
}

.auth-google-btn {
    min-height: 48px;
    border-radius: 10px;
    border: 1px solid hsl(var(--input));
    background: #ffffff;
    color: hsl(var(--foreground));
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.auth-google-btn:hover,
.auth-google-btn:focus {
    background: #f8fafc;
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
}

.auth-google-verified-card {
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.auth-verify-box {
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.45) 0%, rgba(255, 251, 235, 0.8) 100%);
}

.auth-divider {
    position: relative;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid hsl(var(--border));
}

.auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 0.85rem;
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-control-shadcn {
    height: 48px;
    border: 1px solid hsl(var(--input));
    border-radius: 10px;
    background-color: #fcfaf7;
    padding: 0.65rem 0.95rem;
    font-size: 0.9rem;
    color: hsl(var(--foreground));
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control-shadcn::placeholder {
    color: #8a929d;
    opacity: 1;
}

.form-control-shadcn:focus {
    border-color: hsl(var(--ring));
    outline: 0;
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.12);
    background-color: #ffffff;
    color: hsl(var(--foreground));
}

.form-control-shadcn.is-invalid {
    border-color: hsl(var(--destructive));
    background-image: none;
}

.form-control-shadcn.is-invalid:focus {
    border-color: hsl(var(--destructive));
    box-shadow: 0 0 0 3px rgba(195, 49, 34, 0.15);
}

.auth-input-icon {
    z-index: 4;
    pointer-events: none;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: hsl(var(--muted-foreground));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: hsl(var(--primary));
    background: rgba(27, 42, 74, 0.06);
    outline: none;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.65rem 1.25rem;
    border: 1px solid hsl(var(--primary)) !important;
    border-radius: 10px;
    background-color: hsl(var(--primary)) !important;
    color: hsl(var(--primary-foreground)) !important;
    box-shadow: 0 8px 18px rgba(27, 42, 74, 0.18);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus,
.btn-primary-custom:focus-visible,
.btn-primary-custom:active,
.btn-primary-custom.active {
    border-color: #121c32 !important;
    background-color: #121c32 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(27, 42, 74, 0.24) !important;
    outline: none !important;
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.65rem 1.25rem;
    border: 1px solid hsl(var(--input)) !important;
    border-radius: 10px;
    background-color: #ffffff !important;
    color: hsl(var(--foreground)) !important;
    box-shadow: 0 1px 2px rgba(27, 42, 74, 0.03);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus,
.btn-outline-custom:focus-visible,
.btn-outline-custom:active,
.btn-outline-custom.active {
    border-color: hsl(var(--accent)) !important;
    background-color: hsl(var(--accent) / 0.1) !important;
    color: hsl(var(--accent)) !important;
    box-shadow: 0 0 0 3px rgba(182, 131, 28, 0.2) !important;
    outline: none !important;
}

.input-group .form-control-shadcn {
    position: relative;
    min-width: 0;
    flex: 1 1 auto;
    width: 1%;
}

.input-group .toggle-password {
    min-width: 48px;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
}

.auth-error {
    margin-top: 0.375rem;
    color: hsl(var(--destructive));
    font-size: 0.775rem;
    font-weight: 500;
    line-height: 1.4;
}

.auth-error-block {
    padding: 0.75rem 0.9rem;
    border: 1px solid hsl(var(--destructive) / 0.25);
    border-radius: 10px;
    background-color: hsl(var(--destructive) / 0.06);
}

.auth-status {
    padding: 0.8rem 0.95rem;
    border: 1px solid hsl(146 42% 30% / 0.25);
    border-radius: 10px;
    background-color: hsl(146 42% 30% / 0.08);
    color: hsl(146 42% 28%);
    font-size: 0.825rem;
    line-height: 1.5;
}

@media (max-width: 991.98px) {
    .auth-split-shell {
        max-width: 520px;
    }

    .auth-form-panel {
        padding: 2rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .auth-form-panel {
        padding: 1.5rem 1.25rem;
    }
}
