﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f4faf6;
    color: #17251f;
    min-height: 100vh;
}


/* ================================
   PAGE
   ================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px 30px;
    position: relative;
    overflow: hidden;
}


    /* Background decoration */

    .login-page::before {
        content: "";
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: rgba(40, 92, 71, 0.06);
        top: -220px;
        right: -180px;
        pointer-events: none;
    }

    .login-page::after {
        content: "";
        position: absolute;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: rgba(63, 125, 99, 0.05);
        bottom: -200px;
        left: -150px;
        pointer-events: none;
    }


/* ================================
   BACK HOME
   ================================ */

.back-home {
    position: absolute;
    top: 30px;
    left: 40px;
    color: #52645b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
    z-index: 5;
}

    .back-home:hover {
        color: #285c47;
        transform: translateX(-2px);
    }


/* ================================
   LOGIN CARD
   ================================ */

.login-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border: 1px solid #d5e5dc;
    border-radius: 24px;
    padding: 42px 44px;
    box-shadow: 0 20px 60px rgba(40, 92, 71, 0.10);
    position: relative;
    z-index: 2;
}


/* ================================
   BRAND
   ================================ */

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    text-decoration: none;
    margin-bottom: 38px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 6px;
    border-radius: 9px;
    background: #285c47;
}

    .brand-mark span {
        width: 4px;
        background: #ffffff;
        border-radius: 3px;
    }

        .brand-mark span:nth-child(1) {
            height: 10px;
        }

        .brand-mark span:nth-child(2) {
            height: 16px;
        }

        .brand-mark span:nth-child(3) {
            height: 22px;
        }

.brand-name {
    font-size: 21px;
    font-weight: 800;
    color: #17251f;
    letter-spacing: -0.5px;
}

    .brand-name span {
        color: #285c47;
    }


/* ================================
   HEADER
   ================================ */

.login-header {
    margin-bottom: 30px;
}

.login-label {
    display: inline-block;
    color: #3f7d63;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.login-header h1 {
    color: #1d3027;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.login-header p {
    color: #65736c;
    font-size: 15px;
    line-height: 1.6;
}


/* ================================
   FORM
   ================================ */

.login-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.form-group {
    width: 100%;
}

    .form-group label {
        display: block;
        color: #263c32;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 8px;
    }


/* Password label */

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

    .password-label-row label {
        margin-bottom: 0;
    }

    .password-label-row a {
        color: #285c47;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

        .password-label-row a:hover {
            text-decoration: underline;
        }


/* Inputs */

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    background: #ffffff;
    border: 1px solid #bfcfc6;
    border-radius: 10px;
    color: #17251f;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

.form-group input::placeholder {
    color: #89958f;
}

.form-group input:focus {
    border-color: #285c47;
    box-shadow: 0 0 0 3px rgba(40, 92, 71, 0.11);
}


/* ================================
   PASSWORD
   ================================ */

.password-wrapper {
    position: relative;
}

    .password-wrapper input {
        padding-right: 70px !important;
    }

.show-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #285c47;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

    .show-password:hover {
        color: #1f4938;
    }


/* ================================
   REMEMBER ME
   ================================ */

.remember-row {
    margin-top: -4px;
}

.remember-label {
    display: flex !important;
    align-items: center;
    gap: 9px;
    color: #53645c !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

    .remember-label input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid #bfcfc6;
    border-radius: 5px;
    background: #ffffff;
    position: relative;
    flex-shrink: 0;
    transition: 0.2s ease;
}

.remember-label input:checked + .custom-checkbox {
    background: #285c47;
    border-color: #285c47;
}

    .remember-label input:checked + .custom-checkbox::after {
        content: "✓";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -52%);
        color: #ffffff;
        font-size: 12px;
        font-weight: 800;
    }


/* ================================
   LOGIN BUTTON
   ================================ */

.login-button {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 10px;
    background: #285c47;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

    .login-button:hover {
        background: #1f4938;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(40, 92, 71, 0.20);
    }

    .login-button:active {
        transform: translateY(0);
    }

.login-arrow {
    font-size: 19px;
    transition: 0.2s ease;
}

.login-button:hover .login-arrow {
    transform: translateX(4px);
}


/* ================================
   REGISTER
   ================================ */

.register-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 27px;
    font-size: 14px;
    color: #65736c;
}

    .register-section a {
        color: #285c47;
        font-weight: 800;
        text-decoration: none;
    }

        .register-section a:hover {
            text-decoration: underline;
        }


/* ================================
   SECURITY
   ================================ */

.login-security {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 30px;
    padding-top: 23px;
    border-top: 1px solid #e2ece6;
}

.security-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: #e8f4ed;
    color: #285c47;
    font-size: 14px;
    font-weight: 800;
}

.login-security strong {
    display: block;
    color: #34453d;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 3px;
}

.login-security small {
    display: block;
    color: #7a8982;
    font-size: 11px;
    line-height: 1.5;
}


/* ================================
   FOOTER
   ================================ */

.login-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    color: #84918b;
    font-size: 11px;
    position: relative;
    z-index: 2;
}


/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 600px) {

    .login-page {
        padding: 80px 16px 25px;
    }

    .back-home {
        left: 20px;
        top: 25px;
    }

    .login-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .login-header h1 {
        font-size: 29px;
    }

    .login-footer {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}


@media (max-width: 400px) {

    .login-card {
        padding: 28px 20px;
    }

    .register-section {
        flex-direction: column;
        gap: 3px;
    }
}
