:root {
    /* Brand Colors */
    --aq-red: #ef4444;
    --aq-red-deep: #b91c1c;
    --aq-blue: #2563eb;
    --aq-blue-deep: #1d4ed8;
    
    /* Professional Corporate Palette */
    --aq-ink: #0f172a;
    --aq-text: #334155;
    --aq-muted: #64748b;
    --aq-bg-light: #f8fafc;
    --aq-card: #ffffff;
    --aq-card-border: #e2e8f0;
    
    /* Structural */
    --aq-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --aq-radius-lg: 12px;
    --aq-radius-sm: 6px;
}

body {
    background: var(--aq-bg-light);
    background-image: 
        url('/assets/property/images/aqarat%20login%20background.webp'),
        linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 40%),
        linear-gradient(-135deg, rgba(239, 68, 68, 0.04) 0%, transparent 40%);
    background-size: cover, auto, auto;
    background-position: center right, center, center;
    background-repeat: no-repeat, repeat, repeat;
    color: var(--aq-text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.for-login,
.for-signup,
.for-forgot,
.for-login-with-email-link {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

/* Main Container */
.aq-login-shell {
    width: min(1000px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    max-width: 1100px;
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--aq-card-border);
    border-radius: var(--aq-radius-lg);
    box-shadow: var(--aq-shadow);
    overflow: hidden;
}

/* Left Panel - Branding */
.aq-brand-panel {
    padding: 48px;
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.88));
    border-right: 1px solid var(--aq-card-border);
    position: relative;
}

/* Subtle Red/Blue Theme Accent Bar */
.aq-brand-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aq-blue), var(--aq-red));
}

.aq-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--aq-bg-light);
    border: 1px solid var(--aq-card-border);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--aq-muted);
    margin-bottom: 32px;
}

.aq-brand-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--aq-red), var(--aq-blue));
}

.aq-brand-logo {
    width: auto;
    height: 36px;
    margin-bottom: 24px;
}

.aq-brand-title {
    font-size: clamp(1.75rem, 2vw, 2.25rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--aq-ink);
    margin: 0 0 16px;
}

.aq-brand-copy {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--aq-muted);
    margin-bottom: 32px;
}

/* Hero chart mockup */
.aq-occupancy {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 20px;
}
.aq-chart {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(#10b981 0 67%, #ef4444 67% 99%, #f59e0b 99% 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 8px 30px rgba(15,23,42,0.08);
}
.aq-chart-inner {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(255,255,255,0.98);
    color: var(--aq-ink);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.aq-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.aq-hero-stat {
    background: var(--aq-bg-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--aq-ink);
}

.aq-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.aq-feature-card {
    padding: 16px;
    border-radius: var(--aq-radius-sm);
    background: var(--aq-bg-light);
    border: 1px solid var(--aq-card-border);
}

.aq-feature-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--aq-muted);
    margin-bottom: 6px;
}

.aq-feature-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--aq-ink);
}

/* aq-band — lightweight capability tags (unchanged) */
.aq-band {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.aq-band span {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid var(--aq-card-border);
    color: var(--aq-muted);
}


/* Right Panel - Form */
.aq-form-panel {
    padding: 48px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.aq-form-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--aq-card);
    border: 1px solid var(--aq-card-border);
    border-radius: var(--aq-radius-sm);
    box-shadow: 0 8px 30px rgba(15,23,42,0.12);
    padding: 28px;
}

.aq-form-head {
    margin-bottom: 18px;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}
.input-with-icon .icon-left,
.input-with-icon .icon-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.7;
}
.input-with-icon .icon-left { left: 12px; }
.input-with-icon .icon-right { right: 12px; cursor: pointer; }
.input-with-icon .form-control { padding-left: 40px; padding-right: 40px; }

.aq-form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--aq-muted);
    margin-bottom: 12px;
}

.aq-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aq-ink);
    margin: 0 0 8px;
}

.aq-form-subtitle {
    font-size: 0.9rem;
    color: var(--aq-muted);
    margin: 0;
}

.page-card, .page-card-body {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* Form Controls */
.form-control {
    height: 44px;
    border-radius: var(--aq-radius-sm);
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--aq-ink);
    padding: 10px 14px;
    font-size: 0.95rem;
    box-shadow: none;
    transition: all 0.2s ease;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: var(--aq-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.aq-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.aq-forgot-link {
    color: var(--aq-blue);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.aq-forgot-link:hover {
    color: var(--aq-blue-deep);
    text-decoration: underline;
}

/* Sleek Red/Blue Interactive Button */
.aq-login-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: var(--aq-radius-sm);
    background: linear-gradient(90deg, var(--aq-blue) 0%, var(--aq-blue-deep) 50%, var(--aq-red-deep) 100%);
    background-size: 200% auto;
    background-position: left center;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.aq-login-btn:hover {
    background-position: right center;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.15);
}

.sign-up-message {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--aq-muted);
    text-align: center;
}

.sign-up-message a {
    color: var(--aq-blue);
    font-weight: 600;
}

.aq-support-note {
    margin-top: 24px;
    padding: 12px 16px;
    border-radius: var(--aq-radius-sm);
    background: var(--aq-bg-light);
    border: 1px solid var(--aq-card-border);
    color: var(--aq-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.aq-support-note strong {
    color: var(--aq-ink);
}

/* Auth Cards for Signup / Forgot Password */
.aq-auth-card {
    width: min(480px, 100%);
    border: 1px solid var(--aq-card-border);
    border-radius: var(--aq-radius-lg);
    background: var(--aq-card);
    box-shadow: var(--aq-shadow);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.aq-auth-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--aq-blue), var(--aq-red));
}

.aq-auth-card-head {
    margin-bottom: 24px;
    text-align: center;
}

.aq-auth-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aq-ink);
    margin: 0 0 8px;
}

.aq-auth-card-subtitle {
    font-size: 0.9rem;
    color: var(--aq-muted);
    margin: 0;
}

.aq-auth-compact {
    min-height: auto;
    padding: 24px;
}

/* Small trust cards under brand panel */
.aq-trust-band {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--aq-card-border);
}

.aq-trust-card {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 20px;              /* pill vs band's square */
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--aq-blue-deep);
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.18);
}

/* Checkmark dot before each trust item */
.aq-trust-card::before {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aq-blue);
    opacity: 0.7;
}


/* Form extras: remember, sso and help */
.aq-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}
.aq-remember-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--aq-text);
    font-size: 0.9rem;
}
.aq-divider {
    text-align: center;
    margin: 18px 0;
    color: var(--aq-muted);
    font-size: 0.85rem;
}
.aq-sso-btn {
    width: 100%;
    height: 44px;
    border: 1px solid var(--aq-card-border);
    background: transparent;
    border-radius: var(--aq-radius-sm);
    color: var(--aq-ink);
    font-weight: 600;
    cursor: pointer;
}
.aq-help-box {
    margin-top: 14px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(245,247,250,1), rgba(255,255,255,1));
    border: 1px solid var(--aq-card-border);
    border-radius: 8px;
    color: var(--aq-muted);
    font-size: 0.9rem;
}

a {
    color: var(--aq-blue);
    text-decoration: none;
}

a:hover {
    color: var(--aq-blue-deep);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .aq-login-shell {
        grid-template-columns: 1fr;
    }
    .aq-brand-panel {
        border-right: 0;
        border-bottom: 1px solid var(--aq-card-border);
        padding: 40px 32px;
    }
    .aq-form-panel {
        padding: 40px 32px;
    }
}

@media (max-width: 640px) {
    .for-login, .for-signup, .for-forgot {
        padding: 16px;
    }
    .aq-brand-panel, .aq-form-panel, .aq-auth-card {
        padding: 24px;
    }
    .aq-feature-grid {
        grid-template-columns: 1fr;
    }
}