
/* =====================================================
   VAN ESCH PLANTS - LOGIN 2026
   File: css/style_login.css
===================================================== */

:root {
    --green: #69ad17;
    --green-dark: #528d0d;

    --text: #12352f;
    --muted: #818a88;

    --border: #d9dedd;
    --white: #ffffff;

    --radius: 18px;
}

/* RESET */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body.login-page {
    font-family: 'Manrope', Arial, sans-serif;
    color: var(--text);
    background: #e9eee6;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

/* =====================================================
   BACKGROUND
===================================================== */

.login-background {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    z-index: 0;
}

/* Heel subtiele donkere laag */

.login-background::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.01) 0%,
        rgba(0,0,0,0.01) 60%,
        rgba(0,0,0,0.10) 100%
    );
}

/* =====================================================
   LAYOUT
===================================================== */

.login-layout {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    padding: 35px max(32px, 2vw);
}

/* =====================================================
   LOGIN CARD
===================================================== */

.login-card {
    position: relative;
    isolation: isolate;

    width: 100%;
    max-width: 465px;
    min-height: 690px;

    padding: 65px 62px 70px;

    background: rgba(255,255,255,0.96);

    border: 1px solid rgba(255,255,255,0.85);
    border-radius: var(--radius);

    box-shadow:
        0 18px 60px rgba(0,0,0,0.15),
        0 2px 8px rgba(0,0,0,0.04);

    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* =====================================================
   LOGO
===================================================== */

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 2;

    width: 100%;
    margin-bottom: 26px;
}

.login-logo {
    display: block;

    width: 210px;
    max-width: 100%;
    height: auto;
}

.login-divider {
    width: 205px;
    height: 1px;

    margin: 0 auto 52px;

    background: #a8b1ae;
}

/* =====================================================
   WELCOME
===================================================== */

.login-heading {
    position: relative;
    z-index: 2;

    margin-bottom: 32px;
}

.login-heading h1 {
    margin: 0;

    font-size: 31px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -1.1px;

    color: #0d302b;
}

/* =====================================================
   FORM
===================================================== */

.login-form {
    position: relative;
    z-index: 2;

    width: 100%;
}

.login-field {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 56px;

    margin-bottom: 14px;

    background: rgba(255,255,255,0.9);

    border: 1px solid #d6dcda;
    border-radius: 7px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.login-field:hover {
    border-color: #aebcb2;
}

.login-field:focus-within {
    border-color: var(--green);

    box-shadow:
        0 0 0 3px rgba(105,173,23,0.12);
}

/* ICON */

.login-field-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 55px;

    height: 100%;

    color: #858e8b;
}

.login-field-icon svg {
    width: 21px;
    height: 21px;
}

/* INPUT */

.login-field input {
    display: block;

    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0 15px 0 0;

    border: none;
    outline: none;
    border-radius: 7px;

    background: transparent;

    color: #243c35;
    font-size: 14px;
    font-weight: 500;
}

.login-field input::placeholder {
    color: #939c99;
    opacity: 1;
}

/* =====================================================
   LOGIN BUTTON
===================================================== */

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    width: 100%;
    height: 64px;

    margin-top: 24px;
    padding: 0 22px;

    border: none;
    border-radius: 8px;

    background: linear-gradient(
        180deg,
        #76b91c 0%,
        #599b0e 100%
    );

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.4px;

    cursor: pointer;

    transition:
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.login-button svg {
    position: absolute;
    right: 25px;

    width: 23px;
    height: 23px;
}

.login-button:hover {
    background: linear-gradient(
        180deg,
        #68a819 0%,
        #4d870c 100%
    );

    box-shadow: 0 5px 15px rgba(75,125,15,.2);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

/* =====================================================
   ACCOUNT REQUEST
===================================================== */

.login-account {
    position: relative;
    z-index: 2;

    width: 100%;

    margin-top: 27px;
    padding-top: 20px;

    border-top: 1px solid #e1e5e2;

    text-align: center;
}

.login-account a {
    display: inline-block;

    color: #35413b;

    font-size: 13px;
    font-weight: 600;

    text-decoration: underline;
    text-underline-offset: 3px;

    transition: color .2s ease;
}

.login-account a:hover {
    color: var(--green-dark);
}

/* =====================================================
   SUBTLE DECORATION
===================================================== */

.login-decoration {
    position: absolute;

    right: -75px;
    bottom: -125px;

    width: 290px;
    height: 290px;

    opacity: .10;

    border-radius: 90% 0 90% 0;

    background: #70a52b;

    transform: rotate(-25deg);

    pointer-events: none;
    z-index: 0;
}

/* =====================================================
   TABLET
===================================================== */

@media screen and (max-width: 1024px) {

    .login-layout {
        padding: 28px;
    }

    .login-card {
        max-width: 425px;
        min-height: 630px;

        padding: 50px 45px 55px;
    }

    .login-divider {
        margin-bottom: 40px;
    }

    .login-heading h1 {
        font-size: 28px;
    }

}

/* =====================================================
   MOBILE
===================================================== */

@media screen and (max-width: 700px) {

    .login-background {
        background-position: 40% center;
    }

    .login-background::after {
        background: rgba(0,0,0,0.12);
    }

    .login-layout {
        justify-content: center;
        align-items: center;

        min-height: 100vh;
        min-height: 100dvh;

        padding: 22px 16px;
    }

    .login-card {
        width: 100%;
        max-width: 420px;

        min-height: 0;

        padding: 38px 30px 45px;

        border-radius: 16px;

        background: rgba(255,255,255,0.97);
    }

    .login-logo {
        width: 175px;
    }

    .login-brand {
        margin-bottom: 22px;
    }

    .login-divider {
        width: 175px;
        margin-bottom: 32px;
    }

    .login-heading {
        margin-bottom: 25px;
    }

    .login-heading h1 {
        font-size: 25px;
        line-height: 1.35;
    }

    .login-field {
        height: 53px;
    }

    /* Voorkomt automatisch inzoomen op iPhone */

    .login-field input {
        font-size: 16px;
    }

    .login-button {
        height: 57px;
        margin-top: 20px;
        font-size: 16px;
    }

    .login-account {
        margin-top: 24px;
    }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media screen and (max-width: 380px) {

    .login-layout {
        padding: 14px;
    }

    .login-card {
        padding: 30px 23px 35px;
    }

    .login-logo {
        width: 155px;
    }

    .login-heading h1 {
        font-size: 23px;
    }

    .login-divider {
        margin-bottom: 26px;
    }

}

/* =====================================================
   SHORT SCREENS / LANDSCAPE
===================================================== */

@media screen and (max-height: 740px) {

    .login-card {
        min-height: 0;
    }

}

@media screen and (max-height: 650px) {

    .login-layout {
        align-items: flex-start;
    }

    .login-card {
        margin-top: auto;
        margin-bottom: auto;
    }

}

/* KEYBOARD ACCESSIBILITY */

.login-button:focus-visible,
.login-account a:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}
