@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), url('assets/bg1.jpg') center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    margin: 0px;
}

h1 {
    font-weight: bold;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}

button {
    border-radius: 8px;
    border: none;
    padding: 15px 150px;
    transition: transform 80ms ease-in;
    background-color: red;
    color: white;
}

button:active {
    transform: scale(0.95);
}

button:focus {
    background-color: rgb(255, 67, 67);
}

button.ghost {
    background-color: black;
    color: white;
}

input[type="text"]:focus {
    border-color: red;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

input[type="password"]:focus {
    border-color: red;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

form {
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    align-self: center;
    margin: 10px 0 10px;
}

.mobile-form-logo {
    display: none;
}

/* Center only the reCAPTCHA widget within the form */
.g-recaptcha {
    align-self: center;
    margin: 10px 0 30px;
}

input {
    margin-bottom: 30px;
    padding: 13px;
    border-radius: 5px;
    border: 0.5px solid gray;
}


.container {
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100%;
}

.label-form {
    margin-bottom: 4px;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    background: url('assets/bg1.jpg') center center / cover no-repeat;
}

.form-login {
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.right-panel-active .form-login {
    transform: translateX(100%);
    opacity: 0;
}

.form-registration {
    display: flex;
    justify-content: center;
    align-items: center;
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .form-registration {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.5s;
}

@keyframes show {

    0%,
    50% {
        opacity: 0;
        z-index: 1;
    }

    51%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.container.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    /* Two-color background that fills the whole overlay; we shift it per side */
    background: linear-gradient(90deg, #b10000 50%, #246b24 50%);
    background-size: 200% 100%;
    background-position: left; /* show red when on left */
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

/* Make the card.svg fill the whole overlay as a decorative layer */
.overlay::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('assets/card.svg') center center / cover no-repeat;
    opacity: 0.18;
    pointer-events: none;
}

.container.container.right-panel-active .overlay {
    transform: translateX(50%);
    background-position: right; /* show green when on right */
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    padding: 80px 90px;
    text-align: left;
    gap: 10px;
}

/* Removed small corner icon; full overlay image is handled by .overlay::before */

.overlay-left {
    background-color: transparent;
    align-items: flex-start;
    justify-content: center;
    transform: translateX(-20%);
}

.container.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    background-color: transparent;
    justify-content: center;
    align-items: flex-end;
    right: 0;
    transform: translateX(0);
    text-align: right;
}

/* No side-specific override needed for the card background */

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.textr{
    color: white;
}

/* Typography for overlay to resemble the reference */
.overlay-panel h1.textr {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.overlay-panel span.textr {
    font-size: 18px;
    opacity: 0.9;
}

/* Make the line following the title large and italic (like the mock) */
.overlay-panel h1.textr + span.textr {
    font-size: clamp(28px, 4vw, 44px);
    font-style: italic;
    font-weight: 400;
    opacity: 0.85;
}

/* A secondary line under the italic one, slightly smaller */
.overlay-panel h1.textr + span.textr + span.textr {
    font-size: clamp(16px, 2.2vw, 22px);
    opacity: 0.8;
}

@media screen and (max-width: 1024px) {
    .overlay-panel {
        padding: 40px 30px;
        gap: 8px;
    }
}

.mobile-header {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

.mobile-header-text {
    margin: -10px;
    color: rgb(230, 149, 0);
}

.mobile-toggle {
    display: block;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.mobile-toggle a {
    font-weight: bold;
    color: red;
    text-decoration: none;
}

@media screen and (max-width: 1024px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 20px;
    }

    .container {
        position: static;
        height: auto;
        width: 100%;
        max-width: 450px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    }

    .mobile-header {
        display: block;
    }

    .overlay-container {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .form-container {
        position: static;
        width: 100%;
        height: auto;
        transform: none !important;
        opacity: 1 !important;
        padding: 40px 30px;
        transition: none;
    }

    .form-container>form>h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    /* Mobile size for municipal seal above login form */
    .form-logo {
        display: none; /* hide desktop placement on mobile */
    }

    .mobile-form-logo {
        display: block;
        width: 56px;
        height: 56px;
        object-fit: contain;
        margin: 0 auto 8px;
    }

    .form-registration {
        display: none;
    }

    .container.right-panel-active .form-login {
        display: none;
    }

    .container.right-panel-active .form-registration {
        display: flex;
        animation: none;
    }

    button {
        width: 100%;
        padding: 15px 20px;
    }
}