:root {
    --green-100: #78D2A0;
    --green-200: #67B489;
    --green-300: #579873;
    --green-400: #477C5E;
    --green-500: #376048;
    --green-600: #274433;
    --green-700: #17281E;
    --surface: #f6fbf8;
    --white: #ffffff;
    --text: #17281E;
    --muted: #5f7268;
    --shadow: 0 24px 60px rgba(23, 40, 30, 0.16);
    --radius-xl: 20px;
    --radius-lg: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(120, 210, 160, 0.28), transparent 30%),
        linear-gradient(135deg, #17281E 0%, #274433 52%, #376048 100%);
    color: var(--text);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-panel {
    display: none;
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(120, 210, 160, 0.1);
}

.brand-panel::before {
    width: 320px;
    height: 320px;
    top: -110px;
    left: -110px;
}

.brand-panel::after {
    width: 220px;
    height: 220px;
    right: 10%;
    bottom: 12%;
}

.brand-copy {
    position: relative;
    z-index: 1;
    max-width: 540px;
    color: var(--white);
}

.eyebrow,
.login-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(120, 210, 160, 0.16);
    color: var(--green-100);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.brand-copy h1 {
    margin-top: 22px;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.08;
    max-width: 10ch;
}

.brand-copy p {
    margin-top: 18px;
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.74);
    max-width: 42ch;
}

.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    width: 100%;
}

.login {
    width: min(100%, 400px);
    padding: 34px 32px;
    border-radius: 18px;
    background: rgba(246, 251, 248, 0.97);
    box-shadow: 0 20px 46px rgba(23, 40, 30, 0.14);
    border: 1px solid rgba(103, 180, 137, 0.16);
    text-align: left;
}

.login-brand {
    margin-bottom: 14px;
    color: var(--green-700);
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.login .login-badge {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}

.login h2 {
    margin-top: 16px;
    font-size: 1.8rem;
    color: var(--green-700);
}

.login-subtitle {
    margin: 10px 0 22px;
    color: var(--muted);
    line-height: 1.55;
}

.login-helper {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.88rem;
}

.login-feedback {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(199, 76, 76, 0.12);
    border: 1px solid rgba(199, 76, 76, 0.22);
    color: #8c2f2f;
    font-size: 0.92rem;
    font-weight: 600;
}

.campo {
    position: relative;
    margin: 14px 0;
}

.campo input {
    width: 100%;
    height: 56px;
    padding: 20px 14px 8px;
    border: 1px solid rgba(55, 96, 72, 0.25);
    border-radius: 10px;
    background: var(--white);
    outline: none;
    color: var(--green-700);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo input:focus {
    border-color: var(--green-300);
    box-shadow: 0 0 0 4px rgba(120, 210, 160, 0.18);
}

.campo label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.96rem;
    pointer-events: none;
    transition: all 0.18s ease;
    background: transparent;
}

.campo input:focus + label,
.campo input:not(:placeholder-shown) + label,
.campo input:valid + label {
    top: 10px;
    left: 12px;
    transform: none;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green-500);
    background: var(--white);
    padding: 0 6px;
    border-radius: 999px;
}

button {
    width: 100%;
    margin-top: 6px;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-400), var(--green-500));
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 18px 30px rgba(55, 96, 72, 0.22);
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 22px 34px rgba(39, 68, 51, 0.26);
}

@media (max-width: 960px) {
    .brand-copy h1 {
        max-width: none;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .login-shell {
        padding: 20px 20px 36px;
    }

    .login {
        padding: 28px 22px;
    }
}
