/* ============================================================
   auth.css — Shared styles for login.php and register.php
   Careygo Logistics
   ============================================================ */

/* Body */
.auth-body {
    min-height: 100vh;
    background-color: #f4f6fb;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== WRAPPER ===== */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ===== LEFT PANEL ===== */
.auth-panel-left {
    width: 45%;
    flex-shrink: 0;
    background-image: url('../assets/images/Main-banner-1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0, 26, 147, 0.88) 0%, rgba(0, 10, 60, 0.75) 100%);
    z-index: 0;
}

.auth-panel-content {
    position: relative;
    z-index: 1;
    padding: 48px 52px;
    color: #fff;
    max-width: 420px;
}

.auth-logo {
    height: 52px;
    object-fit: contain;
    margin-bottom: 48px;
    display: block;
    filter: brightness(0) invert(1);
}

.auth-panel-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-panel-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 36px;
}

.auth-panel-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.auth-feature-item i {
    color: #00c8ff;
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== RIGHT PANEL ===== */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background-color: #f4f6fb;
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 8px 40px rgba(0, 26, 147, 0.07);
}

/* ===== MOBILE LOGO ===== */
.auth-logo-mobile {
    height: 44px;
    object-fit: contain;
}

/* ===== FORM ELEMENTS ===== */
.auth-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #001A93;
    margin-bottom: 6px;
}

.auth-form-subtitle {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 28px;
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.auth-input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-input-group:focus-within {
    border-color: #001A93;
    box-shadow: 0 0 0 3px rgba(0, 26, 147, 0.1);
}

.auth-input-group .input-group-text {
    background: #f8fafc;
    border: none;
    color: #001A93;
    padding: 0 14px;
    font-size: 15px;
}

.auth-input-group .form-control {
    border: none;
    padding: 12px 14px;
    font-size: 14px;
    color: #1a1a1a;
    background: #ffffff;
    box-shadow: none !important;
}

.auth-input-group .form-control::placeholder {
    color: #adb5bd;
}

.auth-input-group .form-control.is-invalid {
    border-color: transparent;
}

.auth-eye-btn {
    border: none;
    background: #f8fafc;
    color: #6c757d;
    padding: 0 14px;
    border-radius: 0;
    transition: color 0.2s ease;
}

.auth-eye-btn:hover {
    color: #001A93;
    background: #f8fafc;
}

/* Row layout for two-column fields */
.auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .auth-row {
        grid-template-columns: 1fr;
    }
}

/* ===== SUBMIT BUTTON ===== */
.auth-submit-btn {
    background-color: #001A93;
    border: 2px solid #001A93;
    color: #ffffff;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.auth-submit-btn:hover {
    background-color: #ffffff;
    color: #001A93 !important;
}

/* ===== DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: #adb5bd;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* ===== ALT BUTTON (Register / Login) ===== */
.auth-alt-btn {
    border: 2px solid #001A93;
    color: #001A93;
    background: transparent;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.auth-alt-btn:hover {
    background-color: #001A93;
    color: #ffffff;
}

/* ===== BACK LINK ===== */
.auth-back-link a {
    font-size: 13px;
    color: #6c757d;
    transition: color 0.2s ease;
}

.auth-back-link a:hover {
    color: #001A93;
}

/* ===== ALERT ===== */
#alert-box {
    border-radius: 10px;
    font-size: 13px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

/* ===== INVALID FEEDBACK ===== */
.invalid-feedback {
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
    display: none;
}

.invalid-feedback.visible {
    display: block;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength-bar {
    height: 4px;
    border-radius: 4px;
    margin-top: 8px;
    background: #e2e8f0;
    overflow: hidden;
}

.password-strength-bar .strength-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-weak   { width: 33% !important; background-color: #ef4444 !important; }
.strength-fair   { width: 66% !important; background-color: #f59e0b !important; }
.strength-strong { width: 100% !important; background-color: #22c55e !important; }

.password-strength-text {
    font-size: 11px;
    margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .auth-panel-left {
        display: none !important;
    }

    .auth-panel-right {
        width: 100%;
        background: #f4f6fb;
    }
}

@media (max-width: 480px) {
    .auth-form-wrap {
        padding: 32px 20px;
        border-radius: 16px;
    }
}
