:root {
    --primary: #e11d48;
    --navy-dark: #0D1B2A;
    --navy-light: #1B263B;
    --bg-light: #F2F4F7;
    --white: #FFFFFF;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.bd-example-modal-lg .modal-dialog {
    display: table;
    position: relative;
    margin: 0 auto;
    top: calc(50% - 20px);
}

.bd-example-modal-lg .modal-dialog .modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.login-section-wrapper {
    overflow: hidden;
}

/* Logo BSrE */
.bsre-logo {
    max-width: 150px;
}

/* MOBILE */
@media (max-width: 576px) {
    .brand-wrapper {
        text-align: center;
    }

    .brand-wrapper img {
        margin: 0 auto;
    }

    .login-title {
        text-align: center;
    }

    .login-wrapper {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .bsre-logo {
        max-width: 120px;
    }

    .login-footer span {
        font-size: 12px;
    }
}

body.login-page-custom {
    height: 100vh;
    margin: 0;
    font-family: var(--font-body);
    /* Background image + overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)),
        url("../dist/img/background/19.jpg") no-repeat center center;
    background-size: cover;
}

/* Container center */
.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Card */
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Labels */
.form-group label {
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

/* Button */
.btn-login {
    background-color: var(--primary);
    border: none;
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    padding: 12px;
    font-family: var(--font-headings);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}

.btn-login:hover {
    background-color: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.45);
    color: var(--white);
}

.btn-login:active, .btn-login:focus {
    background-color: #c91e2f !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3) !important;
    color: var(--white);
}

/* Input styling */
.form-control {
    border-radius: 8px;
    border: 1.5px solid #E2E8F0;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    height: auto;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
    color: var(--text-dark);
}

.input-group-text {
    border-radius: 0 8px 8px 0;
    border: 1.5px solid #E2E8F0;
    border-left: none;
    background-color: #F8FAFC;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary);
    color: var(--primary);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-pemda {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.logo-divider {
    width: 2px;
    height: 40px;
    background: rgba(13, 27, 42, 0.15);
    margin: 0 10px;
}

.logo-simpatda-text {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* --- Captcha Custom styles --- */
.captcha-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.captcha-img-wrap {
    width: 120px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    height: 46px;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    cursor: pointer;
}

.btn-refresh-captcha {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh-captcha:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.05);
}
