* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

/* ========================================
   HALAMAN LOGIN
======================================== */

.login-page {
    position: relative;
    min-height: 100vh;
    width: 100%;

    display: flex;
    flex-direction: column;

    background-image: url("../img/desa_air_duren_admin.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #ffffff;
}

/* ========================================
   OVERLAY BACKGROUND
======================================== */

.background-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(2, 38, 31, 0.82) 0%,
            rgba(2, 38, 31, 0.60) 35%,
            rgba(2, 38, 31, 0.28) 70%,
            rgba(2, 38, 31, 0.42) 100%
        );

    z-index: 0;
}

/* ========================================
   HEADER DESA
======================================== */

.village-header {
    position: relative;
    z-index: 5;

    width: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 38px 7%;
}

/* ========================================
   BRAND DESA
======================================== */

.village-brand {
    display: flex;
    align-items: center;

    gap: 16px;
}

.village-logo {
    width: 78px;
    height: 78px;

    object-fit: contain;

    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.village-name h1 {
    font-size: 27px;
    font-weight: 700;

    margin-bottom: 5px;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.3);
}

.village-name p {
    font-size: 14px;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.88);

    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   SLOGAN
======================================== */

.village-slogan {
    position: absolute;
    top: 35px;
    right: 70px;
    text-align: right;
    color: white;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-style: italic;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.village-slogan span {
    display: block;
    font-size: 30px;
    font-weight: 400;
    font-style: italic;
}

.village-slogan strong {
    display: block;
    font-size: 30px;
    font-weight: 400;
    font-style: italic;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {

    .village-slogan {
        top: 30px;
        right: 45px;
    }

    .village-slogan span,
    .village-slogan strong {
        font-size: 26px;
    }

}


/* =========================
   HP
========================= */

@media (max-width: 768px) {

    .village-slogan {
        top: 25px;
        right: 20px;
    }

    .village-slogan span,
    .village-slogan strong {
        font-size: 20px;
    }

}


/* =========================
   HP KECIL
========================= */

@media (max-width: 480px) {

    .village-slogan {
        top: 20px;
        right: 15px;
    }

    .village-slogan span,
    .village-slogan strong {
        font-size: 16px;
    }

}

/* ========================================
   KONTEN UTAMA
======================================== */

.login-content {
    position: relative;
    z-index: 3;

    flex: 1;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px 7%;
}

/* ========================================
   INFORMASI KIRI
======================================== */

.welcome-section {
    position: absolute;

    left: 7%;
    top: 50%;

    transform: translateY(-50%);

    width: 360px;

    color: #ffffff;

    text-shadow:
        0 3px 8px rgba(0, 0, 0, 0.35);
}

.welcome-small {
    font-size: 14px;

    font-weight: 700;

    letter-spacing: 4px;

    margin-bottom: 16px;

    color: rgba(255, 255, 255, 0.9);
}

.welcome-section h2 {
    font-size: 43px;

    line-height: 1.12;

    font-weight: 800;

    margin-bottom: 20px;
}

.welcome-description {
    font-size: 17px;

    line-height: 1.65;

    color: rgba(255, 255, 255, 0.92);

    max-width: 350px;
}

.welcome-line {
    width: 68px;
    height: 5px;

    border-radius: 10px;

    margin-top: 25px;

    background: #16a34a;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ========================================
   CARD LOGIN
======================================== */

.login-card {
    position: relative;

    z-index: 10;

    width: 470px;

    padding: 34px 34px 38px;

    background: rgba(255, 255, 255, 0.97);

    border-radius: 16px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.30),
        0 8px 20px rgba(0, 0, 0, 0.12);

    color: #172033;

    text-align: center;

    overflow: hidden;

    backdrop-filter: blur(5px);

    margin: 0 auto;
}

/* ========================================
   LOGO DALAM CARD
======================================== */

.card-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;
}

.card-logo img {
    width: 76px;
    height: 76px;

    object-fit: contain;
}

/* ========================================
   JUDUL LOGIN
======================================== */

.login-title {
    margin-bottom: 25px;
}

.login-title h2 {
    font-size: 30px;

    font-weight: 750;

    color: #172033;

    margin-bottom: 5px;
}

.login-title p {
    font-size: 15px;

    color: #7b8798;
}

/* ========================================
   ERROR LOGIN
======================================== */

.login-error {
    width: 100%;

    padding: 11px 14px;

    margin-bottom: 18px;

    border-radius: 8px;

    background: #fee2e2;

    color: #b91c1c;

    font-size: 14px;

    text-align: left;
}

/* ========================================
   FORM
======================================== */

.form-group {
    width: 100%;

    margin-bottom: 15px;
}

.input-wrapper {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    display: flex;
    align-items: center;

    color: #344054;

    z-index: 2;

    pointer-events: none;
}

.input-wrapper input {
    width: 100%;

    height: 55px;

    padding: 0 48px 0 50px;

    border: 1.5px solid #d6dce5;

    border-radius: 10px;

    background: #ffffff;

    color: #172033;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #9aa4b2;
}

.input-wrapper input:focus {
    border-color: #16a34a;

    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.12);
}

/* ========================================
   TOMBOL SHOW PASSWORD
======================================== */

.show-password {
    position: absolute;

    right: 13px;

    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #7b8798;

    cursor: pointer;

    border-radius: 50%;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.show-password:hover {
    background: #f1f5f9;

    color: #166534;
}

/* ========================================
   BUTTON LOGIN
======================================== */

.login-button {
    width: 100%;

    height: 54px;

    margin-top: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: none;

    border-radius: 10px;

    background: #16a34a;

    color: #ffffff;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(22, 163, 74, 0.25);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-button:hover {
    background: #15803d;

    transform: translateY(-1px);

    box-shadow:
        0 7px 16px rgba(22, 163, 74, 0.30);
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    flex-shrink: 0;
}

/* ========================================
   DIVIDER
======================================== */

.divider {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 13px;

    margin: 25px 0 20px;
}

.divider span {
    flex: 1;

    height: 1px;

    background: #dfe4ea;
}

.divider p {
    font-size: 14px;

    color: #8a94a3;
}

/* ========================================
   KEMBALI KE WEBSITE
======================================== */

.back-website {
    display: inline-flex;
    align-items: center;

    color: #166534;

    font-size: 14px;

    font-weight: 650;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.back-website:hover {
    color: #15803d;

    transform: translateX(-2px);
}

/* ========================================
   DEKORASI BAWAH CARD
======================================== */

.card-decoration {
    position: absolute;

    left: -5%;
    right: -5%;
    bottom: -30px;

    height: 65px;

    pointer-events: none;
}

.card-decoration div:first-child {
    position: absolute;

    width: 65%;

    height: 80px;

    left: -5%;
    bottom: -35px;

    border-radius: 50%;

    background: rgba(22, 163, 74, 0.15);

    transform: rotate(-4deg);
}

.card-decoration div:last-child {
    position: absolute;

    width: 65%;

    height: 80px;

    right: -5%;
    bottom: -38px;

    border-radius: 50%;

    background: rgba(20, 184, 166, 0.14);

    transform: rotate(4deg);
}

/* ========================================
   FOOTER
======================================== */

.login-footer {
    position: relative;

    z-index: 5;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    padding: 16px 7% 22px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 13px;

    text-align: center;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.4);
}

.footer-line {
    width: 55px;

    height: 1px;

    background: rgba(255, 255, 255, 0.7);
}

.login-footer p {
    margin: 0;
}

/* ========================================
   RESPONSIVE TABLET
======================================== */

@media (max-width: 1100px) {

    .welcome-section {
        left: 5%;

        width: 300px;
    }

    .welcome-section h2 {
        font-size: 36px;
    }

    .welcome-description {
        font-size: 15px;
    }

    .login-card {
        width: 440px;
    }

    .village-header {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* ========================================
   RESPONSIVE MOBILE
======================================== */

@media (max-width: 850px) {

    .village-header {
        justify-content: center;

        padding: 25px 20px 10px;
    }

    .village-brand {
        gap: 10px;
    }

    .village-logo {
        width: 55px;
        height: 55px;
    }

    .village-name h1 {
        font-size: 20px;
    }

    .village-name p {
        font-size: 11px;
    }

    .village-slogan {
        display: none;
    }

    .login-content {
        padding: 30px 20px;
    }

    .welcome-section {
        display: none;
    }

    .login-card {
        width: 100%;
        max-width: 450px;

        padding: 30px 25px 36px;
    }

    .login-footer {
        padding: 15px 20px 20px;
    }

    .footer-line {
        display: none;
    }
}

/* ========================================
   RESPONSIVE HP KECIL
======================================== */

@media (max-width: 480px) {

    .village-header {
        padding-top: 18px;
    }

    .village-logo {
        width: 48px;
        height: 48px;
    }

    .village-name h1 {
        font-size: 18px;
    }

    .village-name p {
        font-size: 10px;
    }

    .login-card {
        padding: 25px 18px 32px;

        border-radius: 14px;
    }

    .card-logo img {
        width: 65px;
        height: 65px;
    }

    .login-title h2 {
        font-size: 26px;
    }

    .login-title p {
        font-size: 13px;
    }

    .input-wrapper input {
        height: 52px;

        font-size: 14px;
    }

    .login-button {
        height: 52px;
    }

    .login-footer {
        font-size: 11px;
    }
}