/* ============================================
   LOGIN PAGE — login-bootstrap.css
   Custom overrides on top of Bootstrap 5
   Place at: public/css/login-bootstrap.css
   PENTING: load file ini SETELAH bootstrap.min.css
   ============================================ */

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f0f4ff;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ---- BACKGROUND SHAPES ---- */
.bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.shape-1 { width: 600px; height: 600px; background: #4f46e5; top: -200px; left: -150px; }
.shape-2 { width: 400px; height: 400px; background: #7c3aed; bottom: -100px; right: -100px; }
.shape-3 { width: 250px; height: 250px; background: #2563eb; bottom: 100px; left: 200px; }

/* ---- PAGE WRAPPER ---- */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px -10px rgba(79, 70, 229, 0.2), 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    margin: 24px;
}

/* ---- BRAND SIDE (kiri) ---- */
.brand-side {
    background: linear-gradient(140deg, #4f46e5 0%, #6d28d9 60%, #7c3aed 100%);
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
}

.brand-side::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    top: -80px;
    right: -80px;
}

.brand-side::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -40px;
    left: -40px;
}

.brand-content { position: relative; z-index: 1; }

.brand-logo span {
    color: white;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-content h1 {
    color: white;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.brand-content > p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.7;
    max-width: 280px;
}

.feature-item {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 500;
}

/* Bootstrap tidak punya .feature-icon jadi ini seharusnya aman,
   tapi dikunci width/height/radius secara eksplisit supaya tidak
   ketiban rule lain */
.brand-side .feature-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: white;
}

/* ---- FORM SIDE (kanan) ---- */
.form-side { padding: 40px 48px; }

.login-card { width: 100%; max-width: 380px; }

/* ---- CARD HEADER ---- */
.card-header .avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    margin-left: -8px;
    color: white;
}
.card-header .avatar:first-child { margin-left: 0; }
.av1 { background: #4f46e5; }
.av2 { background: #7c3aed; }
.av3 { background: #a78bfa; }

/* Bootstrap's .badge is inline/font-based with no bg by default in v5.3
   (it relies on bg-* utility). Because this element only has class
   "badge" with no bg-*, we set everything explicitly here so it
   matches the original pill design regardless of Bootstrap defaults. */
.card-header .badge {
    display: inline-block;
    background-color: #ede9fe !important;
    color: #5b21b6 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    letter-spacing: 0.2px;
    line-height: normal;
    white-space: nowrap;
}

/* ---- HEADINGS ---- */
.login-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.subtitle { color: #64748b; font-size: 14px; }

/* ---- ALERTS ---- */
.login-card .alert {
    font-size: 13.5px;
    line-height: 1.5;
    border-radius: 10px;
}

.login-card .alert svg { flex-shrink: 0; margin-top: 1px; }

.login-card .alert-success {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border-color: #a7f3d0 !important;
}

.login-card .alert-error {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

.login-card .alert-error p { margin: 0; }

/* ---- FORM ELEMENTS ---- */
.input-group .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-link:hover { color: #3730a3; }

.input-wrapper { position: relative; }

.input-wrapper .input-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    flex-shrink: 0;
    z-index: 5;
}

/* Kunci padding-left/right supaya icon dan toggle-password tidak
   nabrak teks input, walau Bootstrap .form-control punya padding
   default sendiri (0.375rem 0.75rem) */
.input-wrapper input.form-control {
    padding-top: 11px;
    padding-bottom: 11px;
    padding-left: 44px !important;
    padding-right: 44px !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background-color: #f8fafc;
    box-shadow: none;
}

.input-wrapper input.form-control::placeholder { color: #b0bec5; }

.input-wrapper input.form-control:focus {
    border-color: #4f46e5;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
    transition: color 0.2s;
    z-index: 5;
}
.toggle-password:hover { color: #4f46e5; }

/* ---- REMEMBER (checkbox custom, dipertahankan gayanya) ---- */
.checkbox-label {
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] { display: none; }

.checkmark {
    width: 17px !important;
    height: 17px !important;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px !important;
    background-color: white;
    flex-shrink: 0;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) translateY(-1px);
}

/* ---- SUBMIT BUTTON ---- */
.btn-login {
    background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%) !important;
    color: white !important;
    border: none !important;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.45);
    letter-spacing: 0.2px;
}

.btn-login:hover,
.btn-login:focus {
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -2px rgba(79, 70, 229, 0.55);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px -2px rgba(79, 70, 229, 0.4);
    opacity: 0.92;
}

/* ---- DIVIDER ---- */
.divider {
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecf0;
}

.divider span {
    position: relative;
    background: white;
    padding: 0 12px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---- REGISTER LINK ---- */
.register-link { text-align: center; font-size: 13.5px; color: #64748b; }

.register-link a {
    color: #4f46e5;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}
.register-link a:hover { color: #3730a3; }

/* ---- FOOTER ---- */
.footer-text {
    text-align: center;
    font-size: 11.5px;
    color: #c0c9d8;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767.98px) {
    body { overflow: auto; }
    .bg-shapes { display: none; }

    .page-wrapper {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .brand-side { padding: 32px 28px 28px; }
    .brand-content h1 { font-size: 24px; }
    .brand-content > p,
    .feature-list { display: none; }
    .brand-logo { margin-bottom: 0 !important; }

    .form-side { padding: 32px 28px 40px; align-items: flex-start; }
    .login-card { max-width: 100%; }
}

@media (max-width: 900px) and (min-width: 768px) {
    .brand-content h1 { font-size: 26px; }
    .form-side { padding: 36px; }
}
.login-card .input-group {
    display: block !important;
}