/* =========================================================
   EROPYA LOGIN PAGE
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.login-page {
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    background: #ffffff;
}


/* =========================================================
   LEFT BRANDING - 50%
   ========================================================= */

.login-left {
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #ffffff;
    background: linear-gradient( 135deg, #0f172a 0%, #172554 50%, #1e293b 100% );
}


.login-brand {
    width: 100%;
    max-width: 420px;
    text-align: center;
}


/* =========================================================
   LOGO
   ========================================================= */

.brand-logo {
    width: 55px;
    height: 55px;
    margin: 0 auto 12px;
}


    .brand-logo svg {
        width: 100%;
        height: 100%;
        fill: none;
        stroke: #ffffff;
        stroke-width: 1.3;
        stroke-linejoin: round;
    }


/* =========================================================
   BRAND NAME
   ========================================================= */

.brand-name {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 4px;
    color: white;
}


    .brand-name span {
        color: #22c55e;
    }


.brand-tagline {
    margin: 5px 0 18px;
    font-size: 13px;
    color: #cbd5e1;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.brand-divider {
    width: 45px;
    height: 2px;
    margin: 0 auto 18px;
    background: #22c55e;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.brand-description {
    margin: 0 auto 22px;
    max-width: 370px;
    font-size: 14px;
    line-height: 1.7;
    color: #e2e8f0;
}


/* =========================================================
   FEATURES
   ========================================================= */

.brand-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}


.brand-feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    background: rgba(255,255,255,.04);
    font-size: 11px;
    color: #e2e8f0;
}


/* =========================================================
   RIGHT FORM - 50%
   ========================================================= */

.login-right {
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #ffffff;
}


.login-form-container {
    width: 100%;
    max-width: 390px;
}


/* =========================================================
   HEADER
   ========================================================= */

.form-header {
    margin-bottom: 20px;
}


    .form-header h2 {
        margin: 0 0 5px;
        font-size: 25px;
        font-weight: 700;
        color: #111827;
    }


    .form-header p {
        margin: 0;
        font-size: 13px;
        color: #6b7280;
    }


/* =========================================================
   FORM
   ========================================================= */

.login-form {
    width: 100%;
}


.form-group {
    margin-bottom: 13px;
}


    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
        font-weight: 600;
        color: #374151;
    }


.input-icon {
    margin-right: 4px;
}


/* =========================================================
   INPUT
   ========================================================= */

.form-control {
    display: block;
    width: 100%;
    height: 38px;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    font-size: 13px;
    color: #111827;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}


    .form-control::placeholder {
        color: #9ca3af;
    }


    .form-control:focus {
        border-color: #22c55e;
        box-shadow: 0 0 0 2px rgba(34,197,94,.10);
    }


/* =========================================================
   BUTTON
   ========================================================= */

.btn-login {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 5px;
    border: 0;
    border-radius: 6px;
    background: #16a34a;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}


    .btn-login:hover {
        background: #15803d;
    }


/* =========================================================
   DIVIDER
   ========================================================= */

.form-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 12px;
    color: #9ca3af;
    font-size: 11px;
}


    .form-divider::before,
    .form-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }


/* =========================================================
   REGISTER LINK
   ========================================================= */

.form-links {
    text-align: center;
}


.register-link {
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}


    .register-link:hover {
        text-decoration: underline;
    }

.forgot-password-link {
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

    .forgot-password-link:hover {
        color: #16a34a;
        text-decoration: underline;
    }


/* =========================================================
   VALIDATION
   ========================================================= */

.validation-message {
    margin-bottom: 8px;
    font-size: 11px;
}


.field-validation {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #dc2626;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    body {
        overflow: auto;
    }


    .login-page {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
    }


    .login-left {
        width: 100%;
        height: 280px;
        min-height: 280px;
        padding: 20px;
    }


    .login-right {
        width: 100%;
        height: auto;
        min-height: calc(100vh - 280px);
        padding: 30px 20px;
    }


    .brand-logo {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }


    .brand-name {
        font-size: 27px;
    }


    .brand-tagline {
        margin-bottom: 12px;
    }


    .brand-divider {
        margin-bottom: 12px;
    }


    .brand-description {
        font-size: 12px;
        margin-bottom: 14px;
    }


    .brand-feature {
        padding: 5px 9px;
        font-size: 10px;
    }
}
