/* ==========================================================================
   Ghousia Traders - Sign In Page Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Color variables for the Sign In page overrides */
:root {
    --signin-bg: #F8F5F0;
    --signin-white: #FFFFFF;
    --signin-cream: #F4EBDD;
    --signin-beige: #E8D8C5;
    --signin-brown-primary: #8B5A2B;
    --signin-brown-dark: #3c261c;
    --signin-brown-light: #453226;
    --signin-text-main: #2D2D2D;
    --signin-text-muted: #77716B;
    --signin-border: #E7E0D8;
    
    --signin-font-serif: 'Cormorant Garamond', 'Lora', serif;
    --signin-font-sans: 'Inter', 'Plus Jakarta Sans', sans-serif;
    
    --signin-shadow: 0 12px 36px rgba(74, 48, 36, 0.04);
}

/* Page Reset & Background Override */
body.signin-page-body {
    background-color: var(--signin-bg);
    color: var(--signin-text-main);
    font-family: var(--signin-font-sans);
}

body.signin-page-body *,
body.signin-page-body *::before,
body.signin-page-body *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Header Responsiveness & Fluid Spacing Overrides
   ========================================================================== */
.signin-page-body .nav-menu {
    gap: clamp(10px, 1.5vw, 20px);
}
.signin-page-body .header-actions {
    gap: clamp(8px, 1.2vw, 16px);
}


/* ==========================================================================
   Main Sign-In Container Card
   ========================================================================== */
.signin-section {
    padding: clamp(20px, 4vw, 40px) 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signin-card {
    display: grid;
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
    width: min(100%, 1260px);
    margin: 0 auto;
    background-color: var(--signin-white);
    border: 1px solid var(--signin-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--signin-shadow);
}

/* Left Side - Visual Welcome Panel */
.signin-visual-panel {
    position: relative;
    min-width: 0;
    /* background-color: #000000; */
    padding: clamp(20px, 3vw, 35px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Background image representation */
.signin-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
   
}

/* Transparent Overlay to secure text readability */
.signin-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(253, 251, 247, 0.9) 0%, rgba(253, 251, 247, 0.65) 2%, rgba(253, 251, 247, 0) 100%);
    z-index: 2;
}

.signin-visual-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

.signin-flourish {
    margin-bottom: 24px;
    color: var(--signin-brown-primary);
}

.welcome-heading {
    font-family: var(--signin-font-serif);
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--signin-brown-dark);
    line-height: 1.1;
    margin-bottom: 12px;
}

.welcome-subtext {
    font-size: 1.05rem;
    color: var(--signin-brown-light);
    margin-bottom: 40px;
    font-weight: 400;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 420px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon-container {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--signin-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signin-brown-primary);
    flex-shrink: 0;
    border: 1px solid rgba(139, 90, 43, 0.15);
}

.benefit-icon-container i {
    width: 20px;
    height: 20px;
}

.benefit-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--signin-brown-dark);
    margin-bottom: 3px;
}

.benefit-desc {
    font-size: 0.85rem;
    color: var(--signin-brown-light);
    line-height: 1.4;
}

/* Right Side - Sign-In Form */
.signin-form-panel {
    min-width: 0;
    padding: clamp(20px, 3vw, 35px) clamp(20px, 4vw, 45px);
    background-color: var(--signin-white);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--signin-border);
}

.signin-breadcrumb {
    font-size: 0.75rem;
    color: var(--signin-text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.signin-breadcrumb a {
    color: var(--signin-text-muted);
}

.signin-breadcrumb a:hover {
    color: var(--signin-brown-primary);
}

.signin-breadcrumb span {
    color: var(--signin-brown-primary);
    font-weight: 500;
}

.form-heading {
    font-family: var(--signin-font-serif);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--signin-brown-dark);
    margin-bottom: 6px;
}

.form-subtext {
    font-size: 0.9rem;
    color: var(--signin-text-muted);
    margin-bottom: 30px;
}

.signin-form {
    display: flex;
    flex-direction: column;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--signin-brown-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #A09A93;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 50px;
    padding: 10px 16px 10px 48px;
    border: 1px solid var(--signin-border);
    border-radius: 8px;
    font-family: var(--signin-font-sans);
    font-size: 0.9rem;
    color: var(--signin-text-main);
    background-color: var(--signin-white);
    transition: all 0.25s ease;
}

.form-input::placeholder {
    color: #A09A93;
}

.form-input:focus {
    outline: none;
    border-color: var(--signin-brown-primary);
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.12);
}

.form-input.input-error {
    border-color: #C0392B;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.error-msg {
    color: #C0392B;
    font-size: 0.75rem;
    margin-top: 6px;
    font-weight: 500;
    display: none;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #A09A93;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--signin-brown-primary);
}

.password-toggle i {
    width: 18px;
    height: 18px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.remember-me-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--signin-text-muted);
    cursor: pointer;
    user-select: none;
}

.remember-me-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid var(--signin-border);
    border-radius: 4px;
    accent-color: var(--signin-brown-primary);
    cursor: pointer;
}

.forgot-password-link {
    color: var(--signin-brown-primary);
    font-weight: 600;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.btn-signin {
    width: 100%;
    height: 50px;
    background-color: var(--signin-brown-dark);
    color: var(--signin-white);
    font-family: var(--signin-font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-bottom: 22px;
}

.btn-signin:hover {
    background-color: #2A1405;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 20, 5, 0.15);
}

.form-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--signin-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 22px;
}

.form-divider::before,
.form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--signin-border);
}

.social-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

@media (max-width: 1100px) {
    .social-container {
        flex-direction: column;
        gap: 10px;
    }
    .btn-social {
        width: 100%;
    }
}

.btn-social {
    flex: 1;
    height: 48px;
    border: 1px solid var(--signin-border);
    border-radius: 8px;
    background-color: var(--signin-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--signin-font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--signin-brown-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0 10px;
}

.btn-social:hover {
    background-color: #FAF8F5;
    border-color: var(--signin-brown-primary);
}

.btn-social svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-social.facebook-btn svg {
    fill: #1877F2; /* Standard Facebook Brand Blue - explicitly allowed */
}

.signin-footer-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--signin-text-muted);
    margin-bottom: 12px;
}

.signin-footer-text a {
    color: var(--signin-brown-primary);
    font-weight: 600;
}

.signin-footer-text a:hover {
    text-decoration: underline;
}

.signin-terms-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--signin-text-muted);
}

.signin-terms-text a {
    color: var(--signin-brown-dark);
    text-decoration: underline;
    font-weight: 500;
}

/* ==========================================================================
   Trust Benefits Strip
   ========================================================================== */
.trust-strip {
    background-color: var(--signin-white);
    border-top: 1px solid var(--signin-border);
    border-bottom: 1px solid var(--signin-border);
    padding: 24px 0;
    margin-bottom: 40px;
}

.trust-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
}

.trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 24px;
    position: relative;
}

.trust-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--signin-border);
}

.trust-icon {
    width: 32px;
    height: 32px;
    color: var(--signin-brown-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon i {
    width: 24px;
    height: 24px;
}

.trust-content {
    display: flex;
    flex-direction: column;
}

.trust-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--signin-brown-dark);
    margin-bottom: 2px;
}

.trust-desc {
    font-size: 0.75rem;
    color: var(--signin-text-muted);
    line-height: 1.3;
}

/* ==========================================================================
   Newsletter / Promotional Strip
   ========================================================================== */
.promo-strip-section {
    padding: 0 24px;
    margin-bottom: 60px;
}

.promo-card {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    background-color: #FAF5ED;
    border: 1px solid var(--signin-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
    position: relative;
    overflow: hidden;
}

.promo-left-group {
    display: flex;
    align-items: center;
    flex: 1;
}

.promo-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--signin-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signin-brown-primary);
    border: 1px solid var(--signin-border);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(74, 48, 36, 0.03);
}

.promo-icon-box i {
    width: 20px;
    height: 20px;
}

.promo-text {
    margin-left: 20px;
    margin-right: 40px;
}

.promo-title {
    font-family: var(--signin-font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--signin-brown-dark);
    margin-bottom: 3px;
}

.promo-subtitle {
    font-size: 0.85rem;
    color: var(--signin-text-muted);
}

.promo-form-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
}

.promo-form {
    display: flex;
    background-color: var(--signin-white);
    border: 1px solid var(--signin-border);
    border-radius: 8px;
    padding: 4px;
    width: 440px;
    max-width: 100%;
    flex-shrink: 0;
    margin-right: 140px; /* Leave space for the gift box graphic */
}

.promo-input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-family: var(--signin-font-sans);
    font-size: 0.85rem;
    outline: none;
    background: transparent;
    color: var(--signin-text-main);
}

.promo-input::placeholder {
    color: #A09A93;
}

.promo-btn {
    background-color: var(--signin-brown-primary);
    color: var(--signin-white);
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-family: var(--signin-font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.promo-btn:hover {
    background-color: var(--signin-brown-dark);
}

.promo-msg {
    position: absolute;
    top: 100%;
    left: 0;
    font-size: 0.75rem;
    margin-top: 5px;
    font-weight: 500;
}

.promo-msg.success {
    color: #27AE60;
}

.promo-msg.error {
    color: #C0392B;
}

/* Gift SVG graphic placed on far right */
.promo-gift-graphic {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}


/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Large Tablets & Medium screens (up to 1200px) */
@media (max-width: 1200px) {
    .welcome-heading {
        font-size: 2.4rem;
    }
}

/* Tablets (up to 992px) - Stack Layout Vertically */
@media (max-width: 992px) {
    .signin-section {
        padding: 30px 16px;
    }
    .signin-card {
        grid-template-columns: 1fr;
        border-radius: 16px;
        min-height: auto;
    }
    .signin-visual-panel {
        width: 100%;
        height: 240px;
        padding: 25px;
        justify-content: flex-end;
    }
    .signin-hero-bg {
        object-position: right 65% bottom; /* Ensure ride-on car & teddy bear are visible */
    }
    .signin-visual-overlay {
        background: linear-gradient(0deg, rgba(253, 251, 247, 0.95) 0%, rgba(253, 251, 247, 0.4) 60%, rgba(253, 251, 247, 0.1) 100%);
    }
    .signin-flourish {
        display: none; /* Hide flourish icon to save space */
    }
    .welcome-heading {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    .welcome-subtext {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    .benefits-list {
        display: none; /* Hide benefits list to keep the layout minimal */
    }
    .signin-form-panel {
        width: 100%;
        padding: 25px;
        border-left: none;
        border-top: 1px solid var(--signin-border);
    }
    .form-heading {
        font-size: 1.8rem;
    }
}

/* Mobile Responsive Adjustments (up to 768px) */
@media (max-width: 768px) {
    .signin-section {
        padding: 16px 12px;
    }
    .signin-card {
        border-radius: 14px;
    }
    .signin-form-panel {
        padding: 20px 16px;
    }
    .signin-breadcrumb {
        font-size: 0.72rem;
        margin-bottom: 12px;
    }
    .form-heading {
        font-size: 1.65rem;
        margin-bottom: 4px;
    }
    .form-subtext {
        font-size: 0.82rem;
        margin-bottom: 16px;
    }
    .input-group {
        margin-bottom: 14px;
    }
    .input-label {
        font-size: 0.78rem;
        margin-bottom: 5px;
    }
    .form-input {
        height: 46px;
        font-size: 0.88rem;
        padding: 8px 40px 8px 44px;
        border-radius: 8px;
    }
    .input-icon-left {
        left: 14px;
        width: 16px;
        height: 16px;
    }
    .password-toggle {
        right: 14px;
    }
    .password-toggle i {
        width: 16px;
        height: 16px;
    }
    .form-options {
        font-size: 0.78rem;
        margin-bottom: 16px;
    }
    .btn-signin {
        height: 46px;
        font-size: 0.88rem;
        margin-bottom: 16px;
        border-radius: 8px;
    }
    .form-divider {
        font-size: 0.75rem;
        margin-bottom: 14px;
    }
    .social-container {
        margin-bottom: 18px;
    }
    .btn-social {
        height: 45px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    .btn-social svg {
        width: 18px;
        height: 18px;
    }
    .signin-footer-text {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }
    .signin-terms-text {
        font-size: 0.72rem;
    }
}
