@import url(
    'https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap'
);

/* ===========================
   Variables
   =========================== */

:root {
    --agronix-green: #4a764e;
    --agronix-green-dark: #355c39;
    --agronix-green-light: #648868;
    --agronix-green-soft: #dfeade;

    --background-primary: #edf3ec;
    --background-secondary: #d8e5d7;

    --text-primary: #1f2b22;
    --text-secondary: #66716a;

    --white: #ffffff;

    --danger-background: #fdecec;
    --danger-text: #a73939;

    --shadow:
        0 20px 55px rgba(33, 53, 36, 0.18);
}

/* ===========================
   Normalización
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    color: var(--text-primary);

    background:
        radial-gradient(
            circle at top left,
            rgba(74, 118, 78, 0.16),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--background-primary),
            var(--background-secondary)
        );

    overflow-x: hidden;
}

/* ===========================
   Contenedor principal
   =========================== */

.login-page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px 24px;
}

.container {
    width: min(1080px, 100%);
    min-height: 650px;

    display: grid;
    grid-template-columns: 1fr 1.08fr;

    background-color: var(--white);

    border-radius: 34px;
    box-shadow: var(--shadow);

    overflow: hidden;
}

/* ===========================
   Formulario
   =========================== */

.form-container {
    width: 100%;
    min-width: 0;
}

.sign-in form {
    width: 100%;
    min-height: 650px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 50px 54px;

    text-align: center;
    background-color: var(--white);
}

.sign-in h1 {
    margin-bottom: 10px;

    color: var(--text-primary);

    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

.form-description {
    max-width: 400px;
    margin-bottom: 24px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.5;
}

/* ===========================
   Marca móvil
   =========================== */

.brand-mobile {
    display: none;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;

    color: var(--agronix-green);

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-mobile i {
    font-size: 20px;
}

/* ===========================
   Campos
   =========================== */

.input-group {
    position: relative;

    width: 100%;
    margin-bottom: 14px;
}

.input-group > i {
    position: absolute;
    top: 50%;
    left: 17px;

    color: #708275;

    font-size: 14px;

    transform: translateY(-50%);
    pointer-events: none;
}

.input-group input {
    width: 100%;

    padding: 15px 16px 15px 45px;

    color: var(--text-primary);
    background-color: var(--agronix-green-soft);

    border: 1px solid transparent;
    border-radius: 13px;
    outline: none;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-group input::placeholder {
    color: #6f7b72;
}

.input-group input:focus {
    background-color: #f6faf5;

    border-color: rgba(74, 118, 78, 0.5);

    box-shadow:
        0 0 0 4px rgba(74, 118, 78, 0.11);
}

/* ===========================
   Error
   =========================== */

.login-error {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 15px;
    padding: 11px 13px;

    color: var(--danger-text);
    background-color: var(--danger-background);

    border: 1px solid rgba(167, 57, 57, 0.18);
    border-radius: 11px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.login-error span {
    color: inherit;
}

/* ===========================
   Recuperar contraseña
   =========================== */

.forgot-link {
    margin: 7px 0 14px;

    color: var(--agronix-green-dark);

    font-size: 13px;
    text-decoration: none;

    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: var(--agronix-green);
    text-decoration: underline;
}

/* ===========================
   Botón
   =========================== */

.sign-in button {
    min-width: 200px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 4px;
    padding: 13px 30px;

    color: var(--white);
    background-color: var(--agronix-green);

    border: 1px solid transparent;
    border-radius: 11px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.sign-in button:hover {
    background-color: var(--agronix-green-dark);

    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(74, 118, 78, 0.25);
}

.sign-in button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ===========================
   Panel de información
   =========================== */

.account-panel {
    min-width: 0;
    min-height: 650px;

    display: flex;

    color: var(--white);

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 255, 255, 0.15),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            var(--agronix-green),
            var(--agronix-green-dark)
        );

    border-radius: 150px 0 0 110px;
}

.account-panel-content {
    width: 100%;
    min-height: 650px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 38px 54px;

    text-align: center;
}

.brand-panel {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.94);

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-panel i {
    font-size: 20px;
}

.account-panel h2 {
    margin-bottom: 14px;

    color: var(--white);

    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

.account-panel p {
    width: 100%;
    max-width: 390px;

    margin: 5px 0 10px;

    color: rgba(255, 255, 255, 0.9);

    font-size: 14px;
    line-height: 1.55;
}

/* ===========================
   Contactos
   =========================== */

.contact-information {
    width: 100%;
    max-width: 420px;

    display: flex;
    flex-direction: column;
    gap: 13px;

    margin-top: 18px;
}

.contact-item {
    width: 100%;
    min-height: 68px;

    display: flex;
    align-items: center;
    gap: 13px;

    padding: 12px 15px;

    color: var(--white);
    background-color: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;

    text-align: left;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.contact-item:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.22);

    border-color: rgba(255, 255, 255, 0.4);

    transform: translateY(-2px);
}

.contact-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--white);
    background-color: rgba(0, 0, 0, 0.13);

    border-radius: 10px;

    font-size: 17px;
}

.contact-item-text {
    min-width: 0;
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-item-text small {
    margin-bottom: 2px;

    color: rgba(255, 255, 255, 0.8);

    font-size: 11px;
    line-height: 1.2;
}

.contact-item-text strong {
    max-width: 100%;

    color: var(--white);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;

    overflow-wrap: anywhere;
}

.contact-arrow {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

/* ===========================
   Aviso de seguridad
   =========================== */

.account-notice {
    width: 100%;
    max-width: 420px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 16px;
    padding: 12px 15px;

    color: rgba(255, 255, 255, 0.9);
    background-color: rgba(0, 0, 0, 0.13);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;

    font-size: 11px;
    line-height: 1.45;
    text-align: left;
}

.account-notice i {
    flex: 0 0 auto;
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
}

/* ===========================
   Pantallas medianas
   =========================== */

@media (max-width: 950px) {

    .container {
        grid-template-columns: 0.92fr 1.08fr;
    }

    .sign-in form {
        padding-right: 38px;
        padding-left: 38px;
    }

    .account-panel-content {
        padding-right: 38px;
        padding-left: 46px;
    }

    .sign-in h1 {
        font-size: 29px;
    }

    .account-panel h2 {
        font-size: 26px;
    }
}

/* ===========================
   Vista móvil
   =========================== */

@media (max-width: 768px) {

    .login-page {
        align-items: flex-start;
        padding: 14px;
    }

    .container {
        width: 100%;
        max-width: 470px;
        min-height: auto;

        grid-template-columns: 1fr;

        border-radius: 24px;
    }

    .sign-in form {
        min-height: auto;
        padding: 36px 25px 32px;
    }

    .brand-mobile {
        display: inline-flex;
    }

    .sign-in h1 {
        font-size: 26px;
    }

    .form-description {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .sign-in button {
        width: 100%;
        min-width: 0;
    }

    .account-panel {
        min-height: auto;
        border-radius: 45px 45px 0 0;
    }

    .account-panel-content {
        min-height: auto;
        padding: 34px 24px 30px;
    }

    .brand-panel {
        display: none;
    }

    .account-panel h2 {
        font-size: 23px;
    }

    .account-panel p {
        max-width: 360px;
        font-size: 12.5px;
    }

    .contact-information {
        max-width: 100%;
    }

    .account-notice {
        max-width: 100%;
    }
}

/* ===========================
   Teléfonos pequeños
   =========================== */

@media (max-width: 390px) {

    .login-page {
        padding: 9px;
    }

    .container {
        border-radius: 19px;
    }

    .sign-in form {
        padding: 28px 18px 26px;
    }

    .sign-in h1 {
        font-size: 23px;
    }

    .input-group input {
        padding-top: 13px;
        padding-bottom: 13px;
        font-size: 13px;
    }

    .account-panel {
        border-radius: 35px 35px 0 0;
    }

    .account-panel-content {
        padding: 29px 17px 25px;
    }

    .account-panel h2 {
        font-size: 21px;
    }

    .contact-item {
        min-height: 63px;
        padding: 10px 11px;
    }

    .contact-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .contact-item-text strong {
        font-size: 12.5px;
    }
}

/* Evita recortes en pantallas de poca altura */
@media (max-height: 700px) and (min-width: 769px) {

    .login-page {
        align-items: flex-start;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}