/* Modern Auth Pages Styling */
/* Hanya aplikasikan style khusus untuk halaman auth */
body.auth-page {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

.auth-wrapper {
    height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.auth-left {
    flex: 0 0 60%;
    background-image: url('/images/WhatsApp%20Image%202026-01-07%20at%2015.45.43.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.auth-right {
    flex: 0 0 40%;
    background: white;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.auth-card {
    background: white;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    max-width: 450px;
    width: 100%;
    margin-right: 0;
    padding-top: 20px;
}

.auth-card-header {
    background: white;
    color: #1f2937;
    padding: 30px 0;
    text-align: center;
    border: none;
    border-bottom: none;
    position: relative;
    overflow: visible;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: block;
}

.auth-card-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
}

.auth-card-header p {
    margin: 8px 0 0 0;
    opacity: 0.7;
    font-size: 14px;
}

.auth-card-body {
    padding: 30px 0;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

.auth-form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    display: block;
    box-sizing: border-box;
    background-color: #ffffff !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.auth-form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    background-color: #ffffff !important;
}

.auth-form-control.is-invalid {
    border-color: #ef4444;
    background-color: #ffffff !important;
}

.auth-form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background-color: #ffffff !important;
}

.invalid-feedback {
    font-size: 13px;
    margin-top: 6px;
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-checkbox label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}

.auth-btn-primary {
    background: #3b82f6;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    color: white;
    display: block;
    margin-top: 20px;
    cursor: pointer;
}

.auth-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.auth-btn-google {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 15px;
    width: 100%;
    transition: all 0.3s ease;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #374151;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider span {
    padding: 0 16px;
    color: #9ca3af;
    font-size: 14px;
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-footer-text {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

/* Custom back button styling */
.auth-card-header .btn-outline-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #374151 !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
}

.auth-card-header .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #1f2937 !important;
    transform: translateX(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-card-header .btn-outline-secondary:active {
    transform: translateX(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.auth-card-header .btn-outline-secondary i,
.auth-card-header .btn-outline-secondary .bi {
    font-size: 14px !important;
    transition: transform 0.3s ease;
    color: #374151 !important;
}

.auth-card-header .btn-outline-secondary:hover i,
.auth-card-header .btn-outline-secondary:hover .bi {
    transform: translateX(-2px);
    color: #1f2937 !important;
}

/* Ensure back button is always visible */
.auth-card-header .position-absolute {
    z-index: 10;
    overflow: visible;
}

.auth-card-header .btn-outline-secondary {
    z-index: 10;
    overflow: visible;
}

/* Override Tailwind utilities for back button */
.auth-card-header a[class*="position-absolute"] {
    z-index: 10 !important;
    overflow: visible !important;
}

.auth-card-header a[class*="top-0"] {
    top: 0 !important;
    right: 0 !important;
    margin: 0.75rem !important;
}

.auth-card-header button[class*="btn-outline-secondary"] {
    color: #6b7280 !important;
    border: 1px solid #e5e7eb !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.auth-card-header button[class*="btn-outline-secondary"]:hover {
    color: #4b5563 !important;
    border-color: #d1d5db !important;
    background: rgba(255, 255, 255, 1) !important;
    transform: translateX(-2px) !important;
}

.auth-card-header i[class*="bi-arrow-left"],
.auth-card-header .bi-arrow-left {
    color: #6b7280 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.auth-card-header button[class*="btn-outline-secondary"]:hover i[class*="bi-arrow-left"],
.auth-card-header button[class*="btn-outline-secondary"]:hover .bi-arrow-left {
    color: #4b5563 !important;
}

.remember-forgot-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }
    
    .auth-left {
        min-height: 200px;
        flex: none;
    }
    
    .auth-right {
        padding: 30px 20px;
    }
    
    .auth-card-body {
        padding: 20px 0;
    }
    
    .auth-card-header {
        padding: 20px 0;
    }
    
    .remember-forgot-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .auth-form-group {
        margin-bottom: 16px;
    }
    
    .auth-card {
        margin-right: 0;
    }
}
