/* ============================================================
   CUSTOMER AUTHENTICATION MODULE — Shared Stylesheet
   Covers: Login, Registration, Forgot Password, Reset & Verification
   Brand Color Integration & Responsive Split Layout
   ============================================================ */

/* Root section override for auth pages */
.auth-section {
    padding: 0 !important;
    background: none !important;
}

/* ---- Page Wrapper ---- */
.lg-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ============================================================
   LEFT PANEL — Brand / Visual Side
   ============================================================ */
.lg-brand-panel {
    background: linear-gradient(160deg, var(--theme-primary-dark, #113429) 0%, var(--theme-primary, #1b4d3e) 55%, var(--theme-primary-hover, #236350) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 52px;
    overflow: hidden;
    min-height: 100vh;
}

/* Dot grid overlay */
.lg-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

/* Radial glow */
.lg-brand-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(0, 158, 96, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 75%, rgba(217, 119, 6, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative floating circles */
.lg-deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lg-deco-circle-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
    border: 2px solid rgba(255, 255, 255, 0.06);
}

.lg-deco-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 40px;
    right: -60px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(217, 119, 6, 0.05);
}

.lg-deco-circle-3 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 15%;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-50%);
}

.lg-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 360px;
}

/* Brand Logo / Icon */
.lg-brand-logo-wrap {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.20);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
    animation: lg-float 3.5s ease-in-out infinite;
}

@keyframes lg-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.lg-brand-logo-wrap svg {
    width: 36px;
    height: 36px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Brand tagline */
.lg-brand-tagline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #fecd03;
    margin-bottom: 14px;
}

.lg-brand-title {
    font-size: clamp(26px, 2.5vw, 38px);
    font-weight: 700;
    color: #fff;
    line-height: 1.22;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.lg-brand-title span {
    color: #fecd03;
}

.lg-brand-subtitle {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Feature list */
.lg-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.lg-feature-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.lg-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lg-feature-icon svg {
    width: 17px;
    height: 17px;
    stroke: #ffdf00;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lg-feature-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    line-height: 1.4;
}

/* Divider */
.lg-brand-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
    margin-bottom: 20px;
}

/* Trust badges */
.lg-trust-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lg-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.lg-trust-item svg {
    width: 13px;
    height: 13px;
    stroke: #009e60;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   RIGHT PANEL — Form Container
   ============================================================ */
.lg-form-panel {
    background: #f5f7f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 48px;
    min-height: 100vh;
    position: relative;
}

/* Top border accent */
.lg-form-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary, #1b4d3e), var(--theme-secondary, #d97706), var(--theme-primary-hover, #236350));
}

.lg-form-inner {
    width: 100%;
    max-width: 420px;
}

/* Form header */
.lg-form-header {
    margin-bottom: 32px;
}

.lg-form-header-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--theme-primary, #1b4d3e);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lg-form-header-eyebrow::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: #dddddd;
    max-width: 80px;
}

.lg-form-title {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: var(--theme-text-primary, #1f2937);
    margin-bottom: 6px;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.lg-form-subtitle {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

/* ---- Input Fields ---- */
.lg-field {
    margin-bottom: 18px;
}

.lg-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-text-primary, #1f2937);
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.lg-label span.req {
    color: #db2c2c;
    margin-left: 2px;
}

.lg-input-wrap {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.lg-input-icon {
    position: absolute;
    left: 14px;
    top: 23.5px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #888888;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s;
    z-index: 1;
}

.lg-input {
    width: 100%;
    padding: 13px 16px 13px 43px;
    font-size: 14px;
    font-weight: 500;
    color: var(--theme-text-primary, #1f2937);
    background: #fff;
    border: 1.5px solid #dddddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    -moz-appearance: textfield;
    appearance: none;
}

.lg-input::-webkit-outer-spin-button,
.lg-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lg-input::placeholder {
    color: #888888;
    font-weight: 400;
}

.lg-input:focus {
    border-color: var(--theme-primary, #1b4d3e);
    background: #fff;
    box-shadow: 0 0 0 3.5px rgba(0, 158, 96, 0.11);
}

.lg-input-wrap:focus-within .lg-input-icon {
    stroke: var(--theme-primary, #1b4d3e);
}

.lg-input.parsley-error,
.lg-input.is-invalid {
    border-color: #db2c2c !important;
    box-shadow: 0 0 0 3.5px rgba(219, 44, 44, 0.09) !important;
}

/* Password toggle button */
.lg-pwd-toggle {
    position: absolute;
    right: 14px;
    top: 23.5px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.lg-pwd-toggle svg {
    width: 17px;
    height: 17px;
    stroke: #888888;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s;
}

.lg-pwd-toggle:hover svg {
    stroke: var(--theme-primary, #1b4d3e);
}

.lg-input.lg-input-pwd {
    padding-right: 44px;
}

/* Error message */
.lg-error-msg {
    font-size: 12px;
    color: #db2c2c;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lg-error-msg svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ---- Forgot password link row ---- */
.lg-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 16px;
}

.lg-forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--theme-primary, #1b4d3e);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.lg-forgot-link:hover {
    color: #b45309;
}

.lg-forgot-link svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Submit Button ---- */
.lg-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--theme-primary, #1b4d3e) 0%, var(--theme-primary-hover, #236350) 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
    box-shadow: 0 4px 14px rgba(0, 158, 96, 0.28);
    margin-top: 4px;
    margin-bottom: 20px;
}

.lg-submit-btn svg {
    width: 17px;
    height: 17px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s;
}

.lg-submit-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.32);
}

.lg-submit-btn:hover svg {
    transform: translateX(3px);
}

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

/* ---- Divider ---- */
.lg-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #959595;
    font-size: 12px;
    margin-bottom: 18px;
    font-weight: 500;
}

.lg-divider::before,
.lg-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dddddd;
}

/* ---- CTA Container ---- */
.lg-register-cta {
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.05) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1.5px solid #dddddd;
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
}

.lg-register-cta p {
    font-size: 13.5px;
    color: #4b5563;
    margin: 0 0 10px;
}

.lg-register-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    padding: 9px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.22s;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.25);
}

.lg-register-link svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lg-register-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

/* ---- Resend OTP section ---- */
.lg-resend-wrap {
    margin-top: 15px;
    text-align: center;
}

.lg-resend-btn {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.lg-resend-btn:hover {
    background: #e5e7eb;
    color: #111827;
    border-color: #9ca3af;
}

.lg-resend-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ---- Back to home ---- */
.lg-back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.lg-back-home:hover {
    color: var(--theme-primary, #1b4d3e);
}

.lg-back-home svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================
   RESPONSIVE — Tablet & Mobile
   ============================================================ */
@media (max-width: 991px) {
    .lg-page {
        grid-template-columns: 1fr;
    }

    .lg-brand-panel {
        min-height: auto;
        padding: 48px 32px 40px;
        align-items: flex-start;
    }

    .lg-brand-content {
        max-width: 100%;
    }

    .lg-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .lg-feature-text {
        font-size: 12.5px;
    }

    .lg-form-panel {
        padding: 48px 24px;
        min-height: auto;
    }

    .lg-form-panel::before {
        display: none;
    }
}

@media (max-width: 575px) {
    .lg-brand-panel {
        padding: 36px 20px 32px;
    }

    .lg-brand-title {
        font-size: 22px;
    }

    .lg-features {
        display: none;
    }

    .lg-trust-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .lg-form-panel {
        padding: 32px 20px;
    }

    .lg-form-title {
        font-size: 22px;
    }

    .lg-deco-circle {
        display: none;
    }
}
