/* ==========================================================================
   AUTH / LOGIN PAGE
   ========================================================================== */

.auth-body {
    min-height: 100vh;
    background: var(--bg-body);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Brand panel (left)
   -------------------------------------------------------------------------- */
.auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: linear-gradient(155deg, #0F172A 0%, #1E3A8A 55%, #2563EB 100%);
    overflow: hidden;
}

.auth-brand-glow {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.35), transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(37, 99, 235, 0.45), transparent 50%);
    pointer-events: none;
}

.auth-brand-topo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.14;
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
    color: #F8FAFC;
}

.auth-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    margin-bottom: 28px;
}

.auth-brand-heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.auth-brand-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.auth-brand-subtitle {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #93C5FD;
}

.auth-brand-tagline {
    font-size: 15px;
    line-height: 1.7;
    color: #CBD5E1;
    margin-bottom: 32px;
}

.auth-brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: #E2E8F0;
}

.auth-brand-features i {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: #67E8F9;
}

/* Isometric geodata-layer stack ornament */
.auth-brand-visual {
    margin-top: 30px;
}

.auth-brand-visual-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-layerstack {
    position: relative;
    width: 220px;
    height: 340px;
    flex-shrink: 0;
}

.auth-node-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #67E8F9;
    box-shadow: 0 0 0 4px rgba(103, 232, 249, 0.18);
    z-index: 2;
}

.auth-node-dot-accent {
    background: #FBBF24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.auth-layer-tile {
    position: absolute;
    left: 50%;
    z-index: 1;
    width: 150px;
    height: 150px;
    transform: translateX(-50%) rotate(45deg) scaleY(0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.4);
    overflow: hidden;
}

.auth-layer-heat {
    background:
        radial-gradient(circle at 35% 65%, #EF4444 0%, #F59E0B 28%, #FDE68A 48%, transparent 65%),
        linear-gradient(135deg, #FCA5A5, #FDE68A);
}

.auth-layer-hydro {
    background:
        radial-gradient(circle at 60% 40%, #1D4ED8 0%, #60A5FA 35%, transparent 60%),
        linear-gradient(135deg, #BFDBFE, #93C5FD);
}

.auth-layer-veg {
    background:
        radial-gradient(circle at 30% 30%, #15803D 0%, transparent 45%),
        radial-gradient(circle at 65% 65%, #16A34A 0%, transparent 50%),
        linear-gradient(135deg, #86EFAC, #4ADE80);
}

.auth-layer-grid {
    background-color: #F1F5F9;
    background-image:
        repeating-linear-gradient(0deg, rgba(100, 116, 139, 0.35) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(90deg, rgba(100, 116, 139, 0.35) 0 1px, transparent 1px 20px);
}

.auth-layer-grid-cell {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #2563EB;
    border-radius: 2px;
}

.auth-brand-badges {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.35);
}

.auth-badge-blue { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.auth-badge-teal { background: linear-gradient(135deg, #0D9488, #14B8A6); }
.auth-badge-green { background: linear-gradient(135deg, #059669, #10B981); }

.auth-brand-visual-caption {
    display: block;
    margin-top: 16px;
    font-size: 11px;
    color: #94A3B8;
    line-height: 1.5;
    max-width: 320px;
}

/* --------------------------------------------------------------------------
   Form panel (right)
   -------------------------------------------------------------------------- */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--card-bg);
}

.auth-form-card {
    width: 100%;
    max-width: 380px;
}

.auth-form-logo-mobile {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 20px;
}

.auth-form-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.auth-form-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.auth-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.auth-alert i { font-size: 14px; }

.auth-alert-danger {
    background: var(--icon-red-bg);
    color: #B91C1C;
    border-left-color: #EF4444;
}

.auth-alert-success {
    background: var(--icon-green-bg);
    color: #047857;
    border-left-color: #10B981;
}

.auth-alert-info, .auth-alert-message {
    background: var(--icon-blue-bg);
    color: #1D4ED8;
    border-left-color: #2563EB;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 7px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap > i:first-child {
    position: absolute;
    left: 13px;
    font-size: 13.5px;
    color: var(--text-muted);
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text-main);
    background: var(--card-bg);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13.5px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}

.auth-toggle-password:hover {
    color: var(--text-main);
    background: var(--bg-body);
}

.auth-field-error {
    display: block;
    font-size: 11.5px;
    color: #DC2626;
    margin-top: 6px;
    font-weight: 500;
}

.auth-submit-btn {
    width: 100%;
    padding: 12px 16px;
    margin-top: 6px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.auth-submit-btn:hover { background: var(--primary-blue-hover); }
.auth-submit-btn:active { transform: translateY(1px); }

.auth-form-footer {
    margin-top: 28px;
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-logo-mobile {
        display: flex;
    }
}
