.page-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-container {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 43, 91, 0.15);
    overflow: hidden;
    display: flex;
    max-width: 950px;
    width: 100%;
    min-height: 600px;
    border: 1px solid #eaeaea;
}

.auth-info {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 43, 91, 0.95) 0%, rgba(0, 43, 91, 0.85) 100%),
                url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    padding: 50px 40px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.auth-info h2 span {
    color: #66bb6a;
}

.auth-info p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.auth-info ul {
    list-style: none;
}

.auth-info ul li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-info ul li i {
    color: #66bb6a;
    font-size: 1.1rem;
}

.auth-form-container {
    flex: 1.2;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 90vh;
}

.form-header {
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 1.6rem;
    color: var(--dark-blue);
    font-weight: 700;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 5px;
}

.auth-tabs {
    display: flex;
    background: var(--light-bg);
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-tab.active {
    background: var(--white);
    color: var(--dark-blue);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.auth-form {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    margin-bottom: 15px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i:not(.toggle-password) {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--bright-green);
    box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.1);
}

.account-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.account-type-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.account-type-option i {
    font-size: 1.2rem;
}

.account-type-option.active {
    border-color: var(--bright-green);
    background-color: rgba(0, 128, 0, 0.05);
    color: var(--bright-green);
}

.toggle-password {
    position: absolute;
    right: 15px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.95rem;
    width: 20px;
    text-align: center;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--bright-green);
}

#loginPassword,
#custPasswordInput,
#sellerPasswordInput {
    padding-right: 42px !important;
}

.error-msg {
    color: var(--error-red);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-msg {
    font-size: 0.85rem;
    margin-bottom: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
}

.form-msg.error {
    display: block;
    color: var(--error-red);
    background: rgba(217, 83, 79, 0.08);
}

.form-msg.success {
    display: block;
    color: var(--bright-green);
    background: rgba(0, 128, 0, 0.08);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--bright-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--bright-green);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

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

.logged-in-panel {
    display: none;
    text-align: center;
}

.logged-in-panel .avatar-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--dark-blue);
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    text-transform: uppercase;
}

.logged-in-panel h3 {
    color: var(--dark-blue);
    margin-bottom: 6px;
}

.logged-in-panel p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background-color: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

/* ---------------- Signup step wizard ---------------- */

.signup-step {
    display: none;
    animation: fadeIn 0.35s ease;
}

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

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s ease, transform 0.3s ease;
}

.step-dot.done {
    background: var(--bright-green);
}

.step-dot.current {
    background: var(--dark-blue);
    transform: scale(1.3);
}

.step-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.step-actions .btn-outline-step {
    flex: 1;
    padding: 14px;
    background: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.step-actions .btn-outline-step:hover {
    background: var(--dark-blue);
    color: var(--white);
}

.step-actions .btn-submit {
    flex: 2;
}

@media (max-width: 850px) {
    .auth-container {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }
    .auth-info {
        padding: 30px 25px;
        min-height: 200px;
    }
    .auth-info h2 { font-size: 1.5rem; }
    .auth-info p { font-size: 0.9rem; }
    .auth-info ul { display: none; }

    .auth-form-container {
        padding: 30px 25px;
    }
}

@media (max-width: 450px) {
    .auth-form-container { padding: 25px 15px; }
    .account-type-selector { flex-direction: column; }
    .step-actions { flex-direction: column; }
    .step-actions .btn-submit { margin-top: 0; }
}