/* ============================================
   HIIGSI DOON — Authentication Pages
   Premium Auth Styles (Sign In / Sign Up)
   ============================================ */

:root {
    --auth-bg: #f8fafc;
    --auth-surface: #ffffff;
    --auth-primary: #6B4FBB;
    /* Green-800 base */
    --auth-primary-hover: #5a3fa0;
    --auth-accent: #3b82f6;
    /* Blue-500 */
    --auth-text: #0f172a;
    --auth-text-light: #64748b;
    --auth-border: #e2e8f0;
    --auth-radius: 12px;
    --auth-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--auth-bg);
    color: var(--auth-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Layout: Split Screen ── */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    /* Floating card effect */
    background: var(--auth-surface);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    margin: 20px;
}

/* Left Side: Visual/Brand */
.auth-visual {
    background: linear-gradient(135deg, #3a2669 0%, #1a4fa0 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    color: white;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/auth-bg.jpg') no-repeat center center/cover;
    opacity: 0.2;
    /* Subtle texture overlay */
    mix-blend-mode: overlay;
}

.auth-visual__content {
    position: relative;
    z-index: 2;
}

.auth-visual__quote {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
    /* Use premium font for headings */
}

.auth-visual__author {
    font-size: 16px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-visual__author::before {
    content: '';
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

/* Right Side: Form */
.auth-form-side {
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    /* Allow scroll on small screens */
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--auth-text);
}

.auth-logo img {
    height: 52px;
    width: auto;
}

.auth-logo span {
    display: none;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--gray-900);
}

.auth-subtitle {
    font-size: 16px;
    color: var(--auth-text-light);
}

/* ── Role Selector (Tabs) ── */
.role-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.role-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-tab.active {
    background: white;
    color: var(--auth-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ── Form Elements ── */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.form-input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: white;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-text-light);
    cursor: pointer;
}

.form-link {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--auth-radius);
    background: linear-gradient(135deg, var(--auth-primary) 0%, #5a3fa0 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(107, 79, 187, 0.25);
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(107, 79, 187, 0.35);
}

.btn-auth:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--auth-text-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-divider span {
    padding: 0 16px;
}

.social-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--auth-text);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--auth-text-light);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .auth-visual {
        display: none;
        /* Hide visual on mobile for cleaner login */
    }

    .auth-form-side {
        padding: 40px 24px;
    }
}