:root {
    --primary-teal: #0d9488;
    --secondary-cyan: #06b6d4;
    --dark-teal: #0f766e;
    --light-teal: #ccfbf1;
    --dark-gray: #1e293b;
    --medium-gray: #475569;
    --light-gray: #f8fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(
        135deg,
        var(--primary-teal) 0%,
        var(--secondary-cyan) 100%
    );
    --gradient-light: linear-gradient(
        135deg,
        rgba(13, 148, 136, 0.05) 0%,
        rgba(6, 182, 212, 0.05) 100%
    );
    --gradient-dark: linear-gradient(135deg, var(--dark-teal) 0%, #0891b2 100%);
    --shadow: 0 8px 30px rgba(13, 148, 136, 0.15);
    --border-radius-new: 12px;

    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --hidden: #cbd5e1;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
}

/* MAIN CONTAINER – SPLIT LAYOUT */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* LEFT SIDE – IMAGE */
.image-panel {
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
    background-color: #0b1a2e; /* fallback while image loads */
}

.image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* RIGHT SIDE – FORM */
.form-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: #ffffff;
}

.form-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* TYPOGRAPHY & SPACING */
h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.greeting {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 2rem;
    border-left: 3px solid #4f46e5;
    padding-left: 0.75rem;
}

/* FORM FIELDS */
.input-group {
    margin-bottom: 1.4rem;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #475569;
    margin-bottom: 0.3rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #4f46e5;
    background-color: #ffffff;
    box-shadow: 0 4px 10px -2px rgba(79, 70, 229, 0.15);
}

/* OPTIONS ROW (remember + forgot) */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.8rem;
    font-size: 0.9rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #334155;
    cursor: pointer;
}

.remember input {
    accent-color: #4f46e5;
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.forgot-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted transparent;
    transition: border-color 0.2s;
}

.forgot-link:hover {
    border-bottom-color: #4f46e5;
}

/* MAIN LOGIN BUTTON */
.login-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(145deg, var(--primary-teal), var(--secondary-cyan));
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, 0.4);
    transition: all 0.2s ease;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.login-btn:hover {
    background: linear-gradient(145deg, var(--secondary-cyan), var(--primary-teal));
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -8px rgba(79, 70, 229, 0.5);
}

/* ROLE BUTTONS SECTION – exactly as requested: three-button group under the form */
.role-section {
    margin-top: 1rem;
    text-align: center;
}

.role-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 1rem;
    position: relative;
}

.role-label::before,
.role-label::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 1px;
    background-color: #e2e8f0;
    vertical-align: middle;
    margin: 0 10px;
}

.role-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* base style for all three role buttons */
.role-btn {
    padding: 0.7rem 1.6rem;
    border: 1.5px solid #e2e8f0;
    background: var(--primary-teal);
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    letter-spacing: 0.3px;
}

.admin {
    background-color: #2563eb;
}

/* subtle individual hover identities (just for flair) */
.role-btn.admin:hover {
    border-color: #2563eb;
    background-color: #eef2ff;
    color: #1e40af;
    box-shadow: 0 8px 15px -6px #3b82f6;
}
.cashier {
    background-color: #059669;
}
.role-btn.cashier:hover {
    border-color: #059669;
    background-color: #ecfdf3;
    color: #065f46;
    box-shadow: 0 8px 15px -6px #10b981;
}
.partner {
    background-color: #d97706;
}
.role-btn.partner:hover {
    border-color: #d97706;
    background-color: #fffbeb;
    color: #92400e;
    box-shadow: 0 8px 15px -6px #f59e0b;
}

/* MOBILE STACKING */
@media (max-width: 720px) {
    .split-container {
        flex-direction: column;
    }
    .image-panel {
        flex: 0 0 220px;
        min-height: 220px;
    }
    .form-panel {
        padding: 2rem 1.5rem;
    }
    .role-buttons {
        gap: 0.7rem;
    }
    .role-btn {
        min-width: 100px;
        padding: 0.6rem 1rem;
    }
}

/* tiny screens */
@media (max-width: 400px) {
    .options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .role-buttons {
        flex-direction: column;
        width: 100%;
    }
    .role-btn {
        width: 100%;
    }
}

/* optional decorative */
.image-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.2) 0%,
        rgba(15, 23, 42, 0) 60%
    );
    pointer-events: none;
}
