/* Halaman login SIMAPAN — dipakai oleh resources/views/login/login.blade.php */

:root {
    --login-teal: #129497;
    --login-teal-dark: #0d7375;
    --login-bg: #e5e5e5;
    --login-radius: 10px;
    --login-shadow: 0 18px 50px rgba(18, 36, 40, 0.12);
    /* Path relatif dari /assets/css/ ke /img/login/ */
    /* --login-hero-mask: url("../../img/login/Mask group.png"); */
}

.login-page {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--login-bg);
    min-height: 100vh;
}

.login-page .login-form-col {
    position: relative;
    z-index: 3;
    padding: 1.5rem 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .login-page .login-form-col {
        padding: 2rem 1rem 2rem 2.5rem;
        justify-content: flex-end;
    }

    .login-page .login-card {
        margin-right: -3.5rem;
        max-width: 420px;
    }
}

@media (min-width: 1200px) {
    .login-page .login-card {
        margin-right: -4.5rem;
        max-width: 440px;
    }
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: calc(var(--login-radius) + 4px);
    box-shadow: var(--login-shadow);
    padding: 2rem 1.75rem 1.75rem;
}

@media (min-width: 576px) {
    .login-card {
        padding: 2.25rem 2rem 2rem;
    }
}

.login-card .login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.login-page .form-floating > label {
    color: #6c757d;
    font-size: 0.875rem;
}

.login-page .form-control {
    border-radius: var(--login-radius);
    border-color: #d8dee4;
    min-height: 52px;
    padding-top: 1.1rem;
}

.login-page .form-control:focus {
    border-color: var(--login-teal);
    box-shadow: 0 0 0 0.2rem rgba(18, 148, 151, 0.15);
}

.login-page .input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.login-page .input-group .form-floating .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.login-page .input-group .btn-toggle-password {
    border: 1px solid #d8dee4;
    border-left: 0;
    border-radius: 0 var(--login-radius) var(--login-radius) 0;
    background: #fff;
    color: #6c757d;
    padding: 0 0.9rem;
    min-height: 52px;
}

.login-page .input-group .btn-toggle-password:hover {
    background: #f8f9fa;
    color: var(--login-teal);
}

.login-page .input-group:focus-within .btn-toggle-password {
    border-color: var(--login-teal);
}

.captcha-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.65rem;
}

.captcha-visual-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
}

.captcha-box {
    flex: 1 1 120px;
    min-height: 52px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, #eef5f6 0%, #e2ecee 100%),
        repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(18, 148, 151, 0.06) 3px, rgba(18, 148, 151, 0.06) 6px);
    border: 1px solid #d8dee4;
    border-radius: var(--login-radius);
    font-family: ui-monospace, 'Cascadia Code', monospace;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: #1a3d40;
    user-select: none;
    transform: skewX(-3deg);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-captcha-refresh {
    flex-shrink: 0;
    width: 44px;
    height: 52px;
    border: none;
    border-radius: var(--login-radius);
    background: transparent;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, transform 0.15s;
}

.btn-captcha-refresh:hover {
    color: #0a58ca;
    transform: rotate(90deg);
}

.captcha-input-wrap {
    flex: 1 1 140px;
    min-width: 140px;
}

.captcha-input-wrap .input-group .form-control {
    border-top-right-radius: var(--login-radius);
    border-bottom-right-radius: var(--login-radius);
}

.captcha-input-wrap .input-group-text {
    border-radius: var(--login-radius) 0 0 var(--login-radius);
    border-color: #d8dee4;
    background: #fff;
    color: #6c757d;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #9ca3af;
    font-size: 0.8125rem;
    margin: 1.35rem 0 1.1rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dee2e6;
}

.btn-google-login {
    border: 2px solid #dadce0;
    background: #fff;
    color: #3c4043;
    font-weight: 600;
    border-radius: var(--login-radius);
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.08s;
    box-shadow: 0 2px 8px rgba(60, 64, 67, 0.12);
    font-size: 0.9375rem;
}

.btn-google-login:hover {
    background: #f8f9fa;
    border-color: #bdc1c6;
    color: #202124;
    box-shadow: 0 6px 18px rgba(60, 64, 67, 0.18);
    transform: translateY(-1px);
}

.btn-google-login:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.14);
}

.btn-google-login:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.35), 0 4px 14px rgba(60, 64, 67, 0.15);
}

.btn-google-login .btn-google-svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-google-login img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.login-forgot {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.login-forgot a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

.login-forgot a:hover {
    text-decoration: underline;
}

.login-hero-col {
    position: relative;
    min-height: 220px;
    background: linear-gradient(145deg, #129497 0%, #0d7a6c 42%, #0a5c52 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

@media (min-width: 992px) {
    .login-hero-col {
        min-height: 100vh;
        padding: 3rem 3rem 3rem 5rem;
        justify-content: flex-start;
        align-items: center;
    }
}

.login-hero-col::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--login-hero-mask);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: min(95%, 720px);
    opacity: 0.35;
    pointer-events: none;
}

@media (min-width: 992px) {
    .login-hero-col::before {
        background-position: right 8% bottom 0;
        background-size: auto min(85vh, 640px);
        opacity: 0.4;
    }
}

.login-hero-dots {
    position: absolute;
    top: 12%;
    right: 8%;
    width: 120px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    pointer-events: none;
    opacity: 0.9;
}

.login-hero-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.login-hero-blob.b1 {
    width: min(45vw, 280px);
    height: min(45vw, 280px);
    top: -8%;
    left: -10%;
}

.login-hero-blob.b2 {
    width: min(35vw, 200px);
    height: min(35vw, 200px);
    bottom: 15%;
    right: 5%;
}

.login-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 32rem;
    text-align: center;
    margin-left: 15%;
}

@media (min-width: 992px) {
    .login-hero-content {
        text-align: left;
    }
}

.login-hero-content .welcome {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 0.35rem;
}

.login-hero-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(0.65rem, 2.5vw, 1.15rem);
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .login-hero-brand-row {
        justify-content: flex-start;
    }
}

.login-hero-brand-logo {
    flex-shrink: 0;
    max-width: clamp(3rem, 10vw, 4.75rem);
    max-height: clamp(3rem, 11vw, 5rem);
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

.login-hero-content .brand {
    font-size: clamp(2.5rem, 8vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 0;
}

.login-hero-content .tagline {
    font-size: clamp(0.9rem, 2.2vw, 1.0625rem);
    line-height: 1.55;
    opacity: 0.92;
    font-weight: 400;
}

@media (max-width: 991.98px) {
    .login-page .row {
        flex-direction: column-reverse;
    }

    .login-page .login-form-col .login-card {
        margin-right: 0;
    }
}

.login-page .form-check-label {
    font-size: 0.875rem;
    color: #6b7280;
}
