/* ============================================
   AUTH LAYOUT STYLES
   Styles for authentication pages layout
   ============================================ */

html, body {
    height: 100%;
    margin: 0;
}

.vh-100-custom {
    /* Fullscreen auth card: take entire viewport without rounded corners or
       outer shadow so it visually fills the screen. */
    box-sizing: border-box;
    height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Override auth-card rounded corners when used fullscreen */
.auth-card {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Make the step container the scrolling region so long forms (e.g. Register)
   don't push the footer out of view. Footer stays pinned at bottom of the
   left panel via mt-auto. */
.auth-left-panel {
    height: 100%;
    overflow: hidden;
    min-height: 0;
}

#auth-step-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#auth-slider-container {
    border-radius: 0 !important;
}

/* === MOBILE RESPONSIVE AUTH === */
@media (max-width: 991.98px) {
    .auth-wrapper {
        align-items: stretch !important;
        height: auto !important;
        min-height: 100vh;
    }

    .vh-100-custom {
        /* On small screens let the card fill its container but avoid 100vw to
           prevent horizontal scroll (100vw includes scrollbar). Use 100% and
           ensure no extra horizontal overflow. */
        height: 100vh;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-card {
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .auth-left-panel {
        justify-content: center;
        min-height: 100vh;
    }

    /* prevent horizontal overflow and give breathing room on small screens */
    .auth-wrapper {
        overflow-x: hidden !important;
        padding: 0 0.5rem;
    }

    .mb-lg-4-important {
        margin-bottom: 2rem !important;
    }

    .auth-left-panel-footer {
        font-size: 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .auth-left-panel {
        padding: 1.5rem !important;
    }

    .auth-form .form-control,
    .auth-form .form-select {
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 1.2rem;
    }
}

#auth-slider-container {
    background-color: #0a1628;
    position: relative;
    height: 100%;
    padding: 0 !important;
    border-radius: 0 var(--radius-xl, 20px) var(--radius-xl, 20px) 0;
    overflow: hidden;
}

.carousel {
    height: 100%;
    overflow: hidden;
}

.bg-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.7) 100%);
    padding: 30px;
    box-sizing: border-box;
}

.badge-pertamina {
    position: absolute;
    top: 30px;
    left: 30px;
}

.badge-pertamina img {
    width: 55px;
    height: auto;
}

.top-right-logo img {
    width: 140px;
    height: auto;
}

.top-right-logo {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
}

.overlay-text {
    position: absolute;
    bottom: 80px;
    left: 30px;
    right: 30px;
    color: white;
}

.hashtag {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.overlay-text p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.6;
}

.slider-footer {
    position: absolute;
    bottom: 25px;
    left: 30px;
    right: 30px;
    width: auto;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Auth page specific styles */
.auth-left-panel-title {
    font-size: 0.95rem;
    color: #495057;
}

.auth-left-panel-brand {
    font-size: 1.6rem;
    color: #004c99;
}

.auth-left-panel-footer {
    font-size: 0.78rem;
    color: #8a94a6;
}

.auth-welcome-text {
    font-size: 0.88rem;
}

/* Step specific styles */
.warehouse-info-box {
    background: var(--primary-lighter);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
}

.warehouse-info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.warehouse-info-value {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
}

.warehouse-info-icon {
    font-size: 0.72rem;
}

.btn-warehouse-hidden {
    display: none;
}

/* Success step specific styles */
.success-title {
    color: #004c99;
}

.success-description {
    font-size: 0.9rem;
    color: #495057;
}

.user-profile-card {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.user-profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e6f0ff, #cde0f7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-avatar-icon {
    color: #004c99;
    font-size: 1.2rem;
}

.user-profile-name {
    font-size: 0.95rem;
    color: #1a2332;
}

.user-profile-role,
.user-profile-warehouse {
    font-size: 0.82rem;
    color: #8a94a6;
}

.btn-success-continue {
    font-size: 0.9rem;
}

