/* ============================================================
   Pharma Sales Management System - Authentication Theme
   Clean, modern, healthcare sapphire & clinical teal styling
   ============================================================ */

:root {
    --pharma-primary: #0284c7;
    --pharma-primary-dark: #0369a1;
    --pharma-primary-light: #e0f2fe;
    --pharma-primary-glow: rgba(2, 132, 199, 0.16);
    --pharma-teal: #0d9488;
    --pharma-bg: #f8fafc;
    --pharma-card-bg: #ffffff;
    --pharma-border: #e2e8f0;
    --pharma-text-dark: #0f172a;
    --pharma-text-muted: #64748b;
    --pharma-hero-bg: #cce9f9;
}

body.pharma-auth-body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--pharma-bg);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--pharma-text-dark);
}

/* ============================================================
   SPLIT LOGIN CONTAINER
   ============================================================ */
.pharma-split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
}

/* --- Left Hero Side --- */
.pharma-split-hero {
    flex: 0 0 54%;
    background: radial-gradient(circle at 50% 50%, #e6f4fd 0%, #cce9f9 55%, #bde1f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Decorative ambient shapes */
.pharma-split-hero::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.pharma-split-hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 70%);
    bottom: -80px;
    right: -80px;
    pointer-events: none;
}

.pharma-hero-content {
    max-width: 620px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pharma-hero-image-card {
    background: transparent;
    border-radius: 20px;
    padding: 6px;
    display: inline-block;
    max-width: 100%;
}

.pharma-hero-illustration {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 11rem);
    border-radius: 18px;
    box-shadow: 0 16px 36px -10px rgba(2, 132, 199, 0.22);
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pharma-hero-illustration:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px -8px rgba(2, 132, 199, 0.28);
}

.pharma-feature-pill {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.08);
}

/* --- Right Form Side --- */
.pharma-split-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: #ffffff;
    min-height: 100vh;
    box-sizing: border-box;
}

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

/* Brand Emblem */
.pharma-brand-badge {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pharma-emblem-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.25);
}

.pharma-custom-logo {
    max-width: 160px;
    max-height: 60px;
    object-fit: contain;
}

/* Titles */
.pharma-login-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    text-align: center;
}

.pharma-login-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

/* Form Controls */
.pharma-field-input {
    height: 48px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding-left: 2.65rem;
    font-size: 0.92rem;
    font-weight: 500;
    background-color: #f8fafc;
    color: #0f172a;
    transition: all 0.2s ease;
}

.pharma-field-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.pharma-field-input:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.pharma-field-input:focus {
    background-color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.14);
}

.pharma-field-input.has-toggle {
    padding-right: 2.75rem;
}

.pharma-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    z-index: 2;
    pointer-events: none;
}

.pharma-pwd-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.pharma-pwd-toggle:hover {
    color: var(--pharma-primary);
    background-color: #f1f5f9;
}

.pharma-check-input {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
}

.pharma-check-input:checked {
    background-color: var(--pharma-primary);
    border-color: var(--pharma-primary);
}

/* Submit Button */
.pharma-submit-btn {
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    color: #ffffff;
    font-size: 0.96rem;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pharma-submit-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38);
    transform: translateY(-1px);
    color: #ffffff;
}

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

/* Alerts */
.pharma-alert {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
}

.pharma-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.pharma-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* Responsive */
@media (max-width: 991px) {
    .pharma-split-hero {
        display: none;
    }
    .pharma-split-form {
        width: 100%;
        flex: 1 1 100%;
        padding: 2rem 1.25rem;
    }
}
