﻿: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;
}

* {
    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;
}

.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 welcome section (dark brand 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 login card (light) */
.auth-right {
    background: var(--bg-page);
    padding: 40px 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: 18px;
    padding: 28px 26px 26px;
    border: 1px solid var(--border-soft);
}

.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);
}

.login-card h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.login-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.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;
}

    .input-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 1px var(--primary-soft);
        background: #ffffff;
    }

.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;
    }

.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);
}

    .btn-primary:hover {
        filter: brightness(1.05);
    }

.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;
    }

@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 24px;
    }
}



/* Error state for the input */
.input-control.is-invalid {
    border: 1.5px solid #dc3545 !important;
    background-color: #fff8f8;
}

/* Error text styling */
.error-text {
    color: #dc3545;
    font-size: 12px;
    margin-bottom: 8px!important;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.error-icon {
    margin-right: 5px;
    font-size: 14px;
}