/* Full-page split layout used by auth screens (login, and future register/reset-password pages). */

body.auth-body {
    margin: 0;
    background: var(--bs-body-bg);
}

.auth-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    font-family: 'Cairo', 'Inter', sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 1440px;
    min-height: 100vh;
    display: flex;
    box-shadow: 0 0 60px rgba(20, 30, 50, 0.08);
    background: var(--bs-body-bg);
}

/* Brand / features panel */
.auth-brand-panel {
    flex: 1 1 46%;
    min-width: 360px;
    background: linear-gradient(160deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 48px;
    color: #fff;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        radial-gradient(circle at 20% 20%, #fff 0, transparent 40%),
        radial-gradient(circle at 80% 70%, #fff 0, transparent 35%);
    pointer-events: none;
}

.auth-bg-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 0;
    animation: authFloat 8s ease-in-out infinite;
}

@keyframes authFloat {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); }
    50%  { transform: translateY(-18px) translateX(8px) rotate(8deg); }
    100% { transform: translateY(0) translateX(0) rotate(0deg); }
}

.auth-brand-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    flex-shrink: 0;
}

.auth-brand-name {
    font-size: 26px;
    font-weight: 800;
}

.auth-brand-tagline {
    font-size: 13px;
    opacity: 0.75;
    font-weight: 500;
}

.auth-hero {
    position: relative;
    z-index: 1;
}

.auth-hero-text {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    max-width: 420px;
}

.auth-features {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth-feature-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.auth-feature-text {
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.6;
    opacity: 0.95;
    padding-top: 6px;
}

.auth-footer-line {
    position: relative;
    z-index: 1;
    font-size: 13px;
    opacity: 0.6;
    font-weight: 500;
}

/* Form panel */
.auth-form-panel {
    flex: 1 1 54%;
    min-width: 380px;
    display: flex;
    flex-direction: column;
    padding: 40px 56px;
    position: relative;
}

.auth-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.auth-form-title {
    font-size: 28px;
    font-weight: 800;
}

.auth-form-subtitle {
    font-size: 14.5px;
    color: var(--bs-secondary-color);
    margin-top: 8px;
    font-weight: 500;
}

.auth-input-group {
    position: relative;
}

.auth-input-group .form-control {
    padding-inline-start: 40px;
    padding-inline-end: 44px;
    border-radius: 10px;
    font-size: 15px;
}

.auth-input-group .auth-input-icon {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
    font-size: 15px;
    pointer-events: none;
}

.auth-input-group .auth-input-toggle {
    position: absolute;
    inset-inline-start: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--bs-secondary-color);
    font-size: 15px;
    padding: 4px;
}

.auth-copyright {
    text-align: center;
    font-size: 12.5px;
    color: var(--bs-secondary-color);
    font-weight: 500;
}

@media (max-width: 900px) {
    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 32px 24px;
    }
}
