/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --accent:        #B85370;
    --accent-dark:   #9E4460;
    --accent-lt:     #FAF0F3;
    --accent-bd:     #EDCCD5;
    --bg-main:       #EDEAE6;
    --bg-white:      #FFFFFF;
    --nav-bg:        #F7F5F2;
    --text-primary:  #1A1A1A;
    --text-secondary:#4A4A4A;
    --text-light:    #C8C3BC;
    --border-color:  #E4E0DB;
    --border-light:  #F7F5F2;
    --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:     0 4px 6px -1px rgba(0,0,0,0.08);
    --shadow-lg:     0 10px 15px -3px rgba(0,0,0,0.08);
    --shadow-xl:     0 20px 25px -5px rgba(0,0,0,0.09);
    --space-xs:      0.5rem;
    --space-sm:      0.75rem;
    --space-md:      1rem;
    --space-lg:      1.5rem;
    --space-xl:      2rem;
    --space-2xl:     3rem;
    --radius-sm:     0.5rem;
    --radius-md:     0.75rem;
    --radius-lg:     1rem;
    --radius-xl:     1.25rem;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: var(--space-lg);
    margin: 0;
    width: 100%;
}

/* ==========================================
   BACKGROUND — warm dot grid + soft shapes
   ========================================== */

/* Subtle dot grid texture */

/* Soft warm shapes — replaces the old purple blobs */
.bg-shapes {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 992px) {
    .bg-shapes { opacity: 0.6; }
}
@media (max-width: 576px) {
    .bg-shapes { opacity: 0.4; }
}

/* ==========================================
   MAIN CONTAINER
   ========================================== */
.login-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
    min-height: 600px;
    box-sizing: border-box;
}

/* ==========================================
   LEFT SIDE — ILLUSTRATION
   ========================================== */
.illustration-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.illustration-container img {
    width: 100%;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.07));
}

/* ==========================================
   RIGHT SIDE — LOGIN CARD
   ========================================== */
.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
    max-width: 420px;
    box-sizing: border-box;
}

/* Accent top bar — replaces purple gradient bar */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

/* ==========================================
   HEADER
   ========================================== */
.login-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.logo-container {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-sm);
    position: relative;
}

/* Soft accent ring behind logo */
.logo-container::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: var(--accent-lt);
    border: 1px solid var(--accent-bd);
    border-radius: 50%;
    opacity: 1;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    box-shadow: var(--shadow-md);
}

.login-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.login-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   FORM
   ========================================== */
.login-form {
    margin-top: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184,83,112,0.1);
}

.form-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.input-icon {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    transition: color .15s ease;
}

.form-input:focus + .input-icon {
    color: var(--accent);
}

/* ==========================================
   FORM FOOTER
   ========================================== */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    font-size: 12px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.checkbox-input {
    width: 15px;
    height: 15px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-label {
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.forgot-link {
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: color .15s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.forgot-link:hover {
    color: var(--accent-dark);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Primary — accent solid, no gradient */
.btn-primary {
    background: var(--accent);
    color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(184,83,112,0.25);
    margin-bottom: var(--space-md);
}

.btn-primary:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(184,83,112,0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Outline — ghost neutral */
.btn-outline {
    background: var(--nav-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-main);
    border-color: var(--text-light);
}

/* ==========================================
   DIVIDER
   ========================================== */
.divider {
    position: relative;
    text-align: center;
    margin: var(--space-md) 0;
}

.divider-text {
    display: inline-block;
    padding: 0 var(--space-md);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--bg-white);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

/* ==========================================
   AUTOFILL
   ========================================== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-white) inset;
    -webkit-text-fill-color: var(--text-primary);
    transition: background-color 5000s ease-in-out 0s;
}

/* ==========================================
   RESPONSIVE — unchanged layout, colors only
   ========================================== */

@media (max-width: 1024px) {
    .login-wrapper { gap: var(--space-xl); }
    .login-card    { padding: var(--space-xl); }
}

@media (max-width: 992px) {
    body {
        padding: 20px 15px;
        align-items: flex-start;
    }
    .login-container {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 0;
    }
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        padding: 0;
        min-height: auto;
    }
    .illustration-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-lg) var(--space-xl) var(--space-sm);
        background: var(--nav-bg);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        border: 1px solid var(--border-color);
        border-bottom: none;
    }
    .illustration-container img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }
    .login-card {
        padding: var(--space-lg) var(--space-lg);
        max-width: none;
        width: 100%;
        margin: 0;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        border-top: none;
        box-shadow: 0 10px 25px -5px rgba(0,0,0,0.09);
    }
    .login-card::before { display: none; }
    .shape-3,.shape-4,.shape-5,
    .shape-6,.shape-7,.shape-8,
    .shape-9,.shape-10 { display: none; }
}

@media (max-width: 768px) {
    body { padding: 15px 12px; }
    .login-container { max-width: 440px; }
    .illustration-container img { max-width: 280px; }
    .login-card { padding: var(--space-lg) var(--space-md); }
}

@media (max-width: 576px) {
    body { padding: 10px; }
    .login-container { max-width: 100%; }
    .illustration-container { padding: var(--space-md) var(--space-md) var(--space-sm); }
    .illustration-container img { max-width: 240px; }
    .login-card { padding: var(--space-md); }
    .logo-container { width: 60px; height: 60px; }
    .login-title    { font-size: 20px; }
    .login-subtitle { font-size: 12px; }
    /* Form footer: stays one row, shrink text only */
    .form-footer    { font-size: 11px; gap: 6px; margin-bottom: var(--space-md); }
    .checkbox-label { font-size: 11px; }
    .forgot-link    { font-size: 11px; }
    .btn            { height: 44px; font-size: 13px; }
    .form-input     { height: 44px; }
}

@media (max-width: 576px) {
    .form-input {
        font-size: 16px !important;
    }
}

@media (max-width: 380px) {
    body { padding: 8px; }
    .illustration-container img { max-width: 190px; }
    .login-title { font-size: 18px; }
    .login-subtitle { font-size: 12px; }
    .btn { height: 42px; }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
*:focus { outline: 2px solid transparent; }

.form-input:focus-visible,
.btn:focus-visible,
.checkbox-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }