/**
 * Vendor Authentication Styles - Modern Soft UI Design
 * Consolidated stylesheet for all vendor auth pages
 * Theme: Premium depth, brand green accents, modern aesthetics
 */

/* ========================================
   COMMON AUTH STYLES
   ======================================== */

/* Auth Page Layout - Perfect Centering */
.auth-page {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Sizing */
.logo {
    max-height: 60px;
    width: auto;
}

/* Auth Card Container - Premium Soft UI Depth */
.w-lg-500px,
.w-lg-700px {
    border: 1px solid #f1f5f9;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25) !important;
    background: #ffffff;
    transition: box-shadow 0.3s ease;
}

.w-lg-500px:hover,
.w-lg-700px:hover {
    box-shadow: 0 15px 25px -3px rgba(0, 0, 0, 0.08), 0 6px 10px -2px rgba(0, 0, 0, 0.03);
}

/* Password Input Wrapper - Perfect Icon Alignment */
.password-wrapper {
    position: relative;
    display: block;
}

.password-wrapper .password-input {
    padding-right: 45px !important;
    background-color: #f8fafc;
}

.password-wrapper .toggle-password-icon {
    position: absolute;
    top: 68%;
    right: 35px;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 10;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
    pointer-events: auto;
    display: flex;
        align-items: center;
}

.password-wrapper .toggle-password-icon:hover {
    color: #1f8235;
}
.password-wrapper .invalid-feedback {
    position: absolute;
    bottom: -20px;
    left: 0;
}

/* Form Control Styling - Modern Input Design */
.form-control,
.form-select {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff;
    border-color: #1f8235;
    box-shadow: 0 0 0 3px rgba(31, 130, 53, 0.1);
    color: #1e293b;
}

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-color: #f8fafc;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Buttons & Links - Premium Styling */
.btn {
    transition: all 0.2s ease;
}

.btn-primary {
    background: #1f8235;
    border-color: #1f8235;
    font-weight: 600;
}

.btn-primary:hover {
    background: #176a2b;
    border-color: #176a2b;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(31, 130, 53, 0.2);
}

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

.btn-light-primary {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-light-primary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

/* Link Styling - Forgot Password */
a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1f8235;
}

/* Form Label - Enhanced Contrast */
.form-label {
    color: #1e293b;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Bootstrap Form Classes Override */
.form-control-lg {
    padding: 0.65rem 1rem;
    font-size: 15px;
}

.form-control-solid {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.form-control-solid:focus {
    background-color: #ffffff;
    border-color: #1f8235;
}

.signup-wizard {
    max-width: 700px;
    margin: 0 auto;
}

.stepper-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1rem;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.stepper-item.completed:not(:last-child)::after {
    background: #1f8235;
}

.stepper-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.stepper-item.active .stepper-circle {
    background: #1f8235;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(31, 130, 53, 0.15);
}

.stepper-item.completed .stepper-circle {
    background: #1f8235;
    color: #fff;
}

.stepper-label {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
}

.stepper-item.active .stepper-label,
.stepper-item.completed .stepper-label {
    color: #1f8235;
}

/* ========================================
   STEP CONTENT
   ======================================== */

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* ========================================
   VENDOR TYPE CARDS
   ======================================== */

.vendor-type-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    height: 100%;
}

.vendor-type-card:hover {
    border-color: #1f8235;
    background: #f8fff9;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(31, 130, 53, 0.1);
}

.vendor-type-card.selected {
    border-color: #1f8235;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(31, 130, 53, 0.15);
}

.vendor-type-card .type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.vendor-type-card .type-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.vendor-type-card input[type="radio"] {
    display: none;
}

/* ========================================
   FORM FIELDS - SIGNUP WIZARD
   ======================================== */

.signup-wizard .form-control,
.signup-wizard .form-select {
    padding: 0.85rem 1rem;
    font-size: 14px;
    border-radius: 8px;
}

.signup-wizard .form-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #1e293b;
}

/* ========================================
   SUMMARY CARDS
   ======================================== */

.summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.summary-card h6 {
    font-size: 13px;
    font-weight: 700;
    color: #1f8235;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}

.summary-row .label {
    color: #94a3b8;
    font-weight: 500;
}

.summary-row .value {
    color: #1e293b;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* ========================================
   SIGNUP WIZARD BUTTONS
   ======================================== */

.btn-signup-next {
    background: #1f8235;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-signup-next:hover {
    background: #176a2b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(31, 130, 53, 0.2);
}

.btn-signup-next:active {
    transform: translateY(0);
}

.btn-signup-back {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-signup-back:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-signup-back:active {
    transform: translateY(0);
}

/* ========================================
   PENDING PAGE STYLES
   ======================================== */

.pending-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.pending-icon-wrapper i {
    font-size: 36px;
    color: #1f8235;
}

.pending-info-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 1rem;
}

.pending-info-box p {
    font-size: 13px;
}

.pending-info-box ul {
    font-size: 12px;
    padding-left: 1rem;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .w-lg-500px,
    .w-lg-700px {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .w-lg-500px,
    .w-lg-700px {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        border-radius: 12px;
    }

    .stepper-label {
        font-size: 9px;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    .stepper-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .stepper-item:not(:last-child)::after {
        top: 15px;
        left: calc(50% + 15px);
        width: calc(100% - 30px);
    }

    .signup-wizard {
        padding: 0 0.5rem;
    }

    .vendor-type-card {
        padding: 0.85rem;
    }

    .vendor-type-card .type-icon {
        font-size: 1.5rem;
    }

    .password-wrapper .password-input {
        padding-right: 40px !important;
    }

    .password-wrapper .toggle-password-icon {
        right: 10px;
        font-size: 16px;
    }

    .form-control,
    .form-select {
        padding: 0.65rem 0.75rem;
        font-size: 13px;
    }

    .btn-signup-back,
    .btn-signup-next {
        padding: 0.65rem 1.5rem;
        font-size: 13px;
    }
}
