/* ==========================================================================
   FASTEX DISTRIBUTION - Standalone Wholesale Login & Registration
   Spacious, Clean, Modern B2B Auth Styling
   ========================================================================== */

body.auth-page {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #0f172a;
}

/* Top Bar with Back to Store Link */
.auth-top-bar {
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.auth-back-link:hover {
    color: var(--fastex-red, #bb0027);
    border-color: #cbd5e1;
    background-color: #ffffff;
    transform: translateX(-2px);
}

/* Centered Auth Container */
.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem 3rem 1.25rem;
}

.auth-brand-logo {
    height: 52px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}

.auth-brand-logo:hover {
    transform: scale(1.02);
}

/* Elevated Clean Auth Card */
.auth-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 500px;
    padding: 2.25rem 2.25rem;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }
    .auth-top-bar {
        padding: 1rem;
    }
}

/* Card Header */
.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-header-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.auth-header-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* Segmented Pill Tabs */
.auth-tabs-nav {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 1.75rem;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.65rem 1rem;
    font-size: 0.885rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.2;
}

.auth-tab-btn:hover {
    color: #0f172a;
}

.auth-tab-btn.active {
    background: #ffffff;
    color: var(--fastex-red, #bb0027);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Mandatory text in Register */
.auth-mandatory-notice {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* Form Controls with Spacious Heights and Padding */
.auth-form-group {
    margin-bottom: 1.15rem;
}

.auth-form-group.last {
    margin-bottom: 1.35rem;
}

.auth-form-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.auth-form-control,
.auth-form-select {
    width: 100%;
    height: 48px;
    font-size: 0.9rem;
    padding: 0.65rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    color: #0f172a;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form-control:focus,
.auth-form-select:focus {
    border-color: var(--fastex-red, #bb0027);
    box-shadow: 0 0 0 3px rgba(187, 0, 39, 0.12);
    outline: none;
}

.auth-form-control::placeholder {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Input group with icon styling */
.auth-input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.auth-input-group .input-group-text {
    background-color: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-right: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 0 0.95rem;
    color: #64748b;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.auth-input-group .auth-form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.auth-input-group .auth-form-control.border-end-0 {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

/* Compact Modal Input Fields */
.modal-compact-group .auth-form-control,
.modal-compact-group .input-group-text,
.modal-compact-group .btn-toggle-eye {
    height: 42px;
    font-size: 0.875rem;
}

.modal-compact-group .input-group-text,
.modal-compact-group .btn-toggle-eye {
    padding: 0 0.85rem;
}

.auth-input-group .btn-toggle-eye {
    border: 1.5px solid #cbd5e1;
    border-left: none;
    background-color: #ffffff;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 0 0.95rem;
    color: #64748b;
    cursor: pointer;
    transition: color 0.15s ease;
}

.auth-input-group .btn-toggle-eye:hover {
    color: #0f172a;
}

/* Submit Buttons */
.auth-submit-btn-red {
    background-color: var(--fastex-red, #bb0027);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    height: 48px;
    padding: 0 1.25rem;
    border-radius: 10px;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(187, 0, 39, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-submit-btn-red:hover {
    background-color: #990020;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(187, 0, 39, 0.35);
}

.auth-submit-btn-dark {
    background-color: #0f172a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    height: 48px;
    padding: 0 1.25rem;
    border-radius: 10px;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-submit-btn-dark:hover {
    background-color: #1e293b;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Footer bottom copyright */
.auth-footer-simple {
    text-align: center;
    padding: 1rem;
    font-size: 0.775rem;
    color: #94a3b8;
}

/* Forgot Password 3-Step Wizard Stepper */
.forgot-stepper {
    margin-bottom: 0.5rem;
}
.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
.stepper-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.stepper-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 4px;
    transition: color 0.25s ease;
}
.stepper-item.active .stepper-bubble {
    background: #bb0027;
    border-color: #bb0027;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(187, 0, 39, 0.15);
}
.stepper-item.active .stepper-label {
    color: #bb0027;
    font-weight: 700;
}
.stepper-item.completed .stepper-bubble {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}
.stepper-item.completed .stepper-label {
    color: #10b981;
}
.stepper-line {
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
    margin-bottom: 22px;
    transition: background 0.25s ease;
}
.stepper-line.completed {
    background: #10b981;
}
.btn-fastex {
    background-color: #bb0027;
    border-color: #bb0027;
    color: #ffffff;
}
.btn-fastex:hover {
    background-color: #990020;
    border-color: #990020;
    color: #ffffff;
}
