﻿:root {
    --bg-page: #f3f4f6;
    --bg-left: #0f172a;
    --bg-left-accent: #1d4ed8;
    --bg-card: #ffffff;
    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, 0.08);
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-soft: #e5e7eb;
    --radius-lg: 20px;
}

/* Global reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, #dbeafe, #f3f4f6);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper */
.auth-wrapper {
    width: 100%;
    max-width: 1180px;
    min-height: 520px;
    background: #f9fafb;
    border-radius: 26px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    overflow: hidden;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
    border: 1px solid #e5e7eb;
}

/* Left panel */
.auth-left {
    background: radial-gradient(circle at top left, var(--bg-left-accent), var(--bg-left));
    padding: 42px 46px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #e5e7eb;
}

.tagline-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 11px;
}

.tagline-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
}

.auth-left h1 {
    font-size: 32px;
    margin-top: 16px;
    margin-bottom: 10px;
}

.auth-left p {
    font-size: 14px;
    color: #e5e7eb;
    max-width: 360px;
}

.auth-hero-illu {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
}

.auth-hero-icon {
    width: 130px;
    height: 130px;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .auth-hero-icon::before {
        content: "";
        width: 84px;
        height: 84px;
        border-radius: 26px;
        border: 2px dashed rgba(191, 219, 254, 0.8);
        position: absolute;
    }

    .auth-hero-icon span {
        font-size: 46px;
    }

/* Right side */
.auth-right {
    background: var(--bg-page);
    padding: 40px 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card (used for login and request access) */
.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: 18px;
    padding: 28px 26px 26px;
    border: 1px solid var(--border-soft);
}

/* Branding row */
.logo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.logo-circle {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #22c55e);
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.06em;
    font-size: 12px;
    text-transform: uppercase;
    color: #374151;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* Headings and copy */
.login-card h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.login-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

/* Form elements */
.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    color: #374151;
}

.input-wrap {
    position: relative;
}

.input-control {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: #f9fafb;
    color: var(--text-main);
    font-size: 13px;
    resize: vertical;
}

    .input-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 1px var(--primary-soft);
        background: #ffffff;
    }

/* Meta row (remember me / forgot password) */
.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 14px;
    color: var(--text-muted);
}

    .meta-row a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }

    .meta-row input[type="checkbox"] {
        accent-color: var(--primary);
        margin-right: 5px;
    }

/* Primary button */
.btn-primary {
    width: 100%;
    border: none;
    padding: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
    transition: filter 0.15s ease, box-shadow 0.15s ease;
}

    .btn-primary:hover {
        filter: brightness(1.05);
        box-shadow: 0 12px 24px rgba(37, 99, 235, 0.40);
    }

/* Secondary text below button */
.alt-text {
    margin-top: 14px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

    .alt-text a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 500;
    }

/* Success message for Request Access */
.request-success {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.35);
    color: #166534;
    font-size: 14px;
}

/* Error message variant if you need it later */
.request-error {
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #b91c1c;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 24px;
    }
}


.text-danger {
    color: #dc3545;
    display: block;
    margin-top: 0.25rem;
}

.small {
    font-size: 0.875rem;
    font-weight: 400;
}

/* Optional: Add some spacing between form groups */
.form-group {
    margin-bottom: 1rem;
}

/* Style for input fields */
.input-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

    /* Input field with validation error */
    .input-control.input-validation-error {
        border-color: #dc3545;
    }
