/* ==========================================================================
   SUMDAWNG BAZAR - Authentication Pages Stylesheet (login.css)
   Dedicated styles for /login and /register pages
   ========================================================================== */

.auth-page-container {
    padding-top: 36px;
    padding-bottom: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 280px);
}

.auth-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: #ffffff;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-width: 960px;
    width: 100%;
}

/* Left Brand Side */
.auth-banner-side {
    background: linear-gradient(145deg, #059669 0%, #10b981 50%, #0d9488 100%);
    color: #ffffff;
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-banner-side::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -60px;
    right: -60px;
    pointer-events: none;
}

.auth-banner-side::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 50%;
    bottom: -40px;
    left: -40px;
    pointer-events: none;
}

.auth-tag {
    display: inline-flex;
    align-items: center;
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 9999px;
    align-self: flex-start;
    margin-bottom: 18px;
}

.auth-banner-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.auth-banner-subtitle {
    font-size: 0.925rem;
    line-height: 1.6;
    color: #f1f5f9;
    opacity: 0.92;
    margin-bottom: 28px;
}

.auth-perks-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-perks-list .perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

.auth-perks-list .perk-item svg {
    color: #f59e0b;
    flex-shrink: 0;
}

/* Right Form Side */
.auth-form-side {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

/* Switcher Tabs */
.auth-tabs-row {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 28px;
    gap: 8px;
}

.auth-tab-btn {
    background: transparent;
    border: none;
    outline: none !important;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.auth-tab-btn:hover {
    color: #10b981;
}

.auth-tab-btn.active {
    color: #059669;
}

.auth-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #10b981;
    border-radius: 3px 3px 0 0;
}

.form-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.form-subheading {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
}

/* Form Groups & Inputs */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.825rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0f172a;
    background-color: #f8fafc;
    outline: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
    border-color: #10b981 !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.4;
}

.form-extra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.825rem;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    font-weight: 500;
}

.remember-label input[type="checkbox"] {
    accent-color: #10b981;
    width: 16px;
    height: 16px;
}

/* Buttons */
.btn-primary-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #10b981;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    outline: none !important;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary-green:hover {
    background-color: #059669;
    transform: translateY(-1px);
}

.btn-primary-green:active {
    transform: translateY(0);
}

.btn-outline-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    color: #059669;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 11px 22px;
    border-radius: 6px;
    border: 1px solid #10b981;
    cursor: pointer;
    outline: none !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-green:hover {
    background-color: #ecfdf5;
    border-color: #059669;
}

.w-full {
    width: 100%;
}

/* Demo Credentials helper */
.demo-credentials-box {
    margin-top: 22px;
    padding: 12px 14px;
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    font-size: 0.775rem;
    color: #475569;
    line-height: 1.6;
}

.demo-credentials-box code {
    background: #e2e8f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    font-weight: 700;
    color: #0f172a;
}

/* Responsive */
@media (max-width: 820px) {
    .auth-card-wrapper {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .auth-banner-side {
        padding: 28px 24px;
    }
    .auth-banner-title {
        font-size: 1.45rem;
    }
    .auth-form-side {
        padding: 30px 24px;
    }
}