@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    min-height: 100vh;

    background:
        radial-gradient(circle at top left,
            rgba(0, 130, 90, 0.12),
            transparent 28%),
        linear-gradient(135deg,
            #f8fafc 0%,
            #eef2f7 100%);

    color: #172033;
}

/* PAGE */

.login-page {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 40px 20px;
    gap: 35px;
}

/* LOGO */

.login-header {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo {
    width: min(620px, 90vw);
    object-fit: contain;
}

/* CARD */

.login-card {
    width: min(1120px, 100%);
    min-height: 650px;

    display: grid;
    grid-template-columns: 1fr 0.9fr;

    background: white;

    border-radius: 28px;

    overflow: hidden;

    border: 1px solid rgba(148, 163, 184, 0.2);

    box-shadow:
        0 35px 90px rgba(15, 23, 42, 0.18);
}

/* LEFT */

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 70px;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f8fafc 100%);
}

form {
    width: 100%;
    max-width: 430px;
}

.form-top {
    margin-bottom: 34px;
}

.badge {
    display: inline-flex;

    background: rgba(0, 130, 90, 0.12);

    color: #01563c;

    font-size: 12px;
    font-weight: 700;

    padding: 8px 14px;

    border-radius: 999px;

    margin-bottom: 20px;
}

form h1 {
    font-size: 46px;
    font-weight: 800;

    color: #0f172a;

    margin-bottom: 12px;
}

.intro {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}

/* INPUTS */

.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;

    margin-bottom: 10px;

    font-size: 14px;
    font-weight: 600;

    color: #334155;
}

input {
    width: 100%;
    height: 58px;

    border-radius: 16px;

    border: 1px solid #dbe3ee;

    background: #ffffff;

    padding: 0 18px;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

input:focus {
    outline: none;

    border-color: #00825a;

    box-shadow:
        0 0 0 4px rgba(0, 130, 90, 0.12);
}

input::placeholder {
    color: #94a3b8;
}

/* PASSWORD */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 60px;
}

.toggle-password {
    position: absolute;

    top: 50%;
    right: 12px;

    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 12px;

    background: transparent;

    cursor: pointer;

    font-size: 18px;

    transition: background-color 0.2s ease;
}

.toggle-password:hover {
    background: #f1f5f9;
}

/* FORGOT */

.forgot-link {
    display: inline-block;

    margin-top: 6px;
    margin-bottom: 26px;

    color: #64748b;

    font-size: 14px;

    text-decoration: none;
}

.forgot-link:hover {
    color: #01563c;
}

/* LOGIN BUTTON */

.login-btn {
    width: 100%;
    height: 58px;

    border: none;

    border-radius: 16px;

    background:
        linear-gradient(135deg,
            #01563c,
            #00825a);

    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

    box-shadow:
        0 12px 28px rgba(0, 130, 90, 0.24);
}

.login-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 18px 35px rgba(0, 130, 90, 0.3);
}

/* RIGHT */

.welcome-panel {
    position: relative;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 60px;

    background:
        linear-gradient(135deg,
            rgba(1, 86, 60, 0.98),
            rgba(0, 130, 90, 0.96));
}

.welcome-content {
    position: relative;
    z-index: 5;

    text-align: center;

    max-width: 360px;

    color: white;
}

.mini-title {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;

    opacity: 0.8;
}

.welcome-content h2 {
    font-size: 52px;
    font-weight: 800;

    margin-bottom: 18px;
}

.welcome-content p {
    font-size: 18px;
    line-height: 1.6;

    margin-bottom: 34px;

    color: rgba(255,255,255,0.9);
}

/* REGISTER BUTTON */

.register-btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-width: 200px;
    height: 54px;

    border-radius: 16px;

    border: 1px solid rgba(255,255,255,0.5);

    color: white;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.register-btn:hover {
    background: white;
    color: #00825a;

    transform: translateY(-2px);
}

/* BUBBLES */

.bg-bubbles {
    position: absolute;
    inset: 0;

    overflow: hidden;
}

.bg-bubbles li {
    position: absolute;

    list-style: none;

    display: block;

    width: 40px;
    height: 40px;

    background: rgba(255,255,255,0.12);

    bottom: -160px;

    animation: square 25s infinite linear;
}

.bg-bubbles li:nth-child(1) { left: 10%; }
.bg-bubbles li:nth-child(2) {
    left: 20%;
    width: 80px;
    height: 80px;
    animation-duration: 17s;
}
.bg-bubbles li:nth-child(3) { left: 25%; }
.bg-bubbles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
}
.bg-bubbles li:nth-child(5) { left: 70%; }
.bg-bubbles li:nth-child(6) {
    left: 80%;
    width: 120px;
    height: 120px;
}
.bg-bubbles li:nth-child(7) {
    left: 32%;
    width: 150px;
    height: 150px;
}
.bg-bubbles li:nth-child(8) {
    left: 55%;
    width: 20px;
    height: 20px;
}
.bg-bubbles li:nth-child(9) {
    left: 25%;
    width: 12px;
    height: 12px;
}
.bg-bubbles li:nth-child(10) {
    left: 90%;
    width: 150px;
    height: 150px;
}

@keyframes square {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-900px) rotate(600deg);
    }
}

/* RESPONSIVE */

@media screen and (max-width: 960px) {

    .login-card {
        grid-template-columns: 1fr;
    }

    .welcome-panel {
        min-height: 320px;
        order: 1;
    }

    .form-container {
        order: 2;
        padding: 40px 24px;
    }

    form h1 {
        font-size: 38px;
    }
}

@media screen and (max-width: 600px) {

    .login-page {
        padding: 20px 12px;
    }

    .logo {
        width: 95vw;
    }

    .login-card {
        border-radius: 20px;
    }

    .welcome-panel {
        padding: 34px 20px;
        min-height: 280px;
    }

    .welcome-content h2 {
        font-size: 38px;
    }

    .welcome-content p {
        font-size: 15px;
    }

    .form-container {
        padding: 30px 18px;
    }

    form h1 {
        font-size: 32px;
    }

    input,
    .login-btn {
        height: 54px;
    }
}