
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --simoga-green: #17694D;
    --simoga-green-dark: #173D2B;

    --simoga-orange: #F5A623;
    --simoga-orange-light: #FFC15A;

    --simoga-white: #FFFFFF;
    --simoga-muted: rgba(255, 255, 255, 0.76);

    --simoga-border: rgba(255, 255, 255, 0.34);
    --simoga-glass: rgba(12, 27, 19, 0.25);

    --simoga-danger: #FFD9D9;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    font-size: 16px;
}

body.login-page {
    position: relative;
    isolation: isolate;

    min-height: 100vh;
    min-height: 100svh;

    margin: 0;
    padding: 30px 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow-x: hidden;

    color: var(--simoga-white);
    background: var(--simoga-green-dark);

    font-family: 'Plus Jakarta Sans', sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   BACKGROUND VIDEO
========================================= */

.video-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 177.78vh;
    min-height: 100vh;
    transform: translate(-50%, -50%) scale(1.2);
    pointer-events: none;
}

.video-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(9, 24, 16, 0.48) 0%,
            rgba(9, 24, 16, 0.58) 50%,
            rgba(9, 24, 16, 0.70) 100%
        );
}

/* =========================================
   DEKORASI CAHAYA
========================================= */

.ambient-light {
    position: fixed;
    z-index: -1;

    width: 380px;
    height: 380px;

    border-radius: 50%;
    filter: blur(110px);

    pointer-events: none;
    opacity: 0.15;
}

.ambient-light-one {
    top: -180px;
    left: -100px;

    background: var(--simoga-orange);
}

.ambient-light-two {
    right: -150px;
    bottom: -190px;

    background: #76A77B;
}

/* =========================================
   LAYOUT UTAMA
========================================= */

.login-wrapper {
    position: fixed;
    z-index: 1;

    width: 100%;
    max-width: 440px;

    margin: auto;
}

/* =========================================
   CARD TRANSPARAN
========================================= */

.login-card {
    width: 100%;

    padding: 32px 34px 28px;

    background: var(--simoga-glass);

    border: 1px solid var(--simoga-border);
    border-radius: 24px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

/* =========================================
   LOGO SIMOGA
========================================= */

.card-brand {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin: 0 auto 22px;
}

.simoga-logo {
    display: block;

    width: min(210px, 75%);
    max-height: 125px;

    object-fit: contain;

    filter: drop-shadow(
        0 4px 12px rgba(0, 0, 0, 0.15)
    );
}

/* =========================================
   HEADER LOGIN
========================================= */

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    margin-bottom: 29px;
}

.eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    margin: 0 0 12px;

    color: var(--simoga-orange-light);

    font-size: 12px;
    font-weight: 800;

    line-height: 1.5;
    letter-spacing: 3px;
}

.eyebrow-line {
    width: 22px;
    height: 1px;

    background: var(--simoga-orange);
}

.welcome-title {
    margin: 0;

    color: var(--simoga-white);

    font-size: clamp(27px, 6vw, 34px);
    font-weight: 800;

    line-height: 1.3;
    letter-spacing: -0.8px;

    text-wrap: balance;
}

.welcome-description {
    margin: 11px 0 0;

    color: var(--simoga-muted);

    font-size: 14px;
    font-weight: 400;

    line-height: 1.8;
    letter-spacing: 0.05px;

    text-align: center;
}

/* =========================================
   FORM
========================================= */

.login-form {
    display: flex;
    flex-direction: column;

    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 9px;
    min-width: 0;
}

.form-label {
    color: rgba(255, 255, 255, 0.95);

    font-size: 12px;
    font-weight: 700;

    line-height: 1.5;
    letter-spacing: 0.25px;
}

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 53px;

    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.055);

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--simoga-orange);

    background: rgba(255, 255, 255, 0.09);

    box-shadow:
        0 0 0 3px rgba(245, 166, 35, 0.14);
}

.input-icon {
    flex-shrink: 0;

    width: 47px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--simoga-orange-light);

    font-size: 15px;
}

.login-input {
    width: 100%;
    min-width: 0;
    height: 51px;

    padding: 0 13px 0 0;

    color: var(--simoga-white);

    background: transparent;
    border: none;
    outline: none;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    line-height: 1.5;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.68);

    opacity: 1;
    font-weight: 400;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #FFFFFF;

    transition:
        background-color 99999s ease-in-out 0s;
}

.password-input {
    padding-right: 4px;
}

/* =========================================
   TOGGLE PASSWORD
========================================= */

.password-toggle {
    flex-shrink: 0;

    width: 45px;
    height: 49px;

    margin-right: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--simoga-white);

    background: transparent;
    border: none;
    border-radius: 9px;

    font-size: 16px;

    cursor: pointer;

    transition: color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--simoga-orange-light);
    outline: none;
}

/* =========================================
   TOMBOL LOGIN - ORANYE TANPA PANAH
========================================= */

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 53px;

    margin-top: 2px;
    padding: 14px 18px;

    color: #26321F;
    background: var(--simoga-orange);

    border: none;
    border-radius: 12px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 800;

    line-height: 1.5;
    letter-spacing: 0.2px;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.15);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    color: #26321F;
    background: var(--simoga-orange-light);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.19);
}

.login-button:active {
    transform: scale(0.99);
}

.login-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.login-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* =========================================
   CATATAN KEAMANAN
========================================= */

.security-note {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;

    margin: -3px 0 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: 11px;
    font-weight: 500;

    line-height: 1.6;
    text-align: center;
}

.security-note i {
    color: var(--simoga-orange-light);
    font-size: 12px;
}

/* =========================================
   PESAN ERROR
========================================= */

.login-alert {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-bottom: 22px;
    padding: 13px 14px;

    color: var(--simoga-danger);

    background: rgba(127, 29, 29, 0.30);

    border: 1px solid rgba(252, 165, 165, 0.42);
    border-radius: 11px;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.7;
}

.login-alert i {
    flex-shrink: 0;
    margin-top: 3px;
}

/* =========================================
   RESPONSIVE MOBILE
========================================= */

@media (max-width: 480px) {
    body.login-page {
        padding: 24px 17px;
    }

    .login-wrapper {
        max-width: 390px;
    }

    .login-card {
        padding: 27px 23px 24px;
        border-radius: 21px;
    }

    .card-brand {
        margin-bottom: 20px;
    }

    .simoga-logo {
        width: min(185px, 75%);
        max-height: 110px;
    }

    .login-header {
        margin-bottom: 25px;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 2.8px;
    }

    .welcome-title {
        font-size: 29px;
    }

    .welcome-description {
        max-width: 270px;
        font-size: 13px;
    }

    .login-form {
        gap: 20px;
    }
}

/* =========================================
   LAYAR PENDEK
========================================= */

@media (max-height: 700px) and (min-width: 481px) {
    body.login-page {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .login-card {
        padding-top: 24px;
        padding-bottom: 22px;
    }

    .card-brand {
        margin-bottom: 15px;
    }

    .simoga-logo {
        max-height: 95px;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .login-form {
        gap: 16px;
    }
}

/* =========================================
   AKSESIBILITAS
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    
/* Ikon mata password */
.password-input {
    padding-right: 0;
}

.password-toggle {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.password-toggle i {
    pointer-events: none;
}

}