﻿/* =========================================================
   ZENGI TECHNOLOGIES
   AUTHENTICATION / REGISTER PAGE
   ========================================================= */

:root {
    --zengi-primary: #0f5132;
    --zengi-primary-dark: #093b25;
    --zengi-primary-light: #198754;
    --zengi-accent: #84cc16;
    --zengi-text: #17221b;
    --zengi-muted: #6b7280;
    --zengi-border: #dfe5e1;
    --zengi-bg: #f4f7f5;
    --zengi-white: #ffffff;
    --zengi-danger: #dc3545;
    --zengi-radius: 18px;
    --zengi-input-radius: 10px;
    --zengi-shadow: 0 20px 60px rgba(15, 81, 50, 0.12);
}


/* =========================================================
   PAGE
   ========================================================= */

.zengi-auth-page {
    min-height: 100vh;
    background: radial-gradient( circle at 10% 20%, rgba(132, 204, 22, 0.08), transparent 30% ), radial-gradient( circle at 90% 80%, rgba(15, 81, 50, 0.08), transparent 30% ), var(--zengi-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.zengi-auth-container {
    width: 100%;
    max-width: 1100px;
}

.zengi-auth-card {
    overflow: hidden;
    background: var(--zengi-white);
    border-radius: var(--zengi-radius);
    box-shadow: var(--zengi-shadow);
    min-height: 680px;
}


/* =========================================================
   BRAND SIDE
   ========================================================= */

.zengi-auth-brand {
    position: relative;
    background: linear-gradient( 145deg, rgba(5, 48, 30, 0.98), rgba(15, 81, 50, 0.96) );
    color: #fff;
    padding: 55px 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
}


    /* Decorative circles */

    .zengi-auth-brand::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(132, 204, 22, 0.08);
        top: -130px;
        right: -130px;
    }

    .zengi-auth-brand::after {
        content: "";
        position: absolute;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.08);
        bottom: -100px;
        left: -100px;
    }


/* =========================================================
   BRAND CONTENT
   ========================================================= */

.zengi-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
}


.zengi-brand-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(132, 204, 22, 0.15);
    border: 1px solid rgba(132, 204, 22, 0.25);
    color: var(--zengi-accent);
    font-size: 27px;
    margin-bottom: 25px;
}


.zengi-brand-content h1 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -0.7px;
}


.zengi-brand-description {
    max-width: 390px;
    margin: 0 0 38px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   FEATURES
   ========================================================= */

.zengi-brand-features {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


.zengi-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}


.zengi-feature-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--zengi-accent);
    font-size: 16px;
}


.zengi-feature strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
}


.zengi-feature span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   FORM SIDE
   ========================================================= */

.zengi-auth-form {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 50px 65px;
}


.zengi-form-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.zengi-form-header {
    margin-bottom: 30px;
}


.zengi-form-eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--zengi-primary-light);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.8px;
}


.zengi-form-header h2 {
    margin: 0 0 10px;
    color: var(--zengi-text);
    font-size: 29px;
    font-weight: 750;
    letter-spacing: -0.6px;
}


.zengi-form-header p {
    margin: 0;
    color: var(--zengi-muted);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   MOBILE LOGO
   ========================================================= */

.zengi-mobile-logo {
    display: none;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 13px;
    background: rgba(15, 81, 50, 0.08);
    color: var(--zengi-primary);
    font-size: 20px;
}


/* =========================================================
   VALIDATION
   ========================================================= */

.zengi-validation {
    margin-bottom: 20px;
    padding: 12px 15px;
    border-radius: 9px;
    background: rgba(220, 53, 69, 0.07);
    border: 1px solid rgba(220, 53, 69, 0.15);
    color: var(--zengi-danger);
    font-size: 13px;
}

    .zengi-validation:empty {
        display: none;
    }


/* =========================================================
   INPUT GROUP
   ========================================================= */

.zengi-input-group {
    margin-bottom: 20px;
}


    .zengi-input-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--zengi-text);
        font-size: 13px;
        font-weight: 650;
    }


/* =========================================================
   INPUT WRAPPER
   ========================================================= */

.zengi-input-wrapper {
    position: relative;
}


    .zengi-input-wrapper > i:first-child {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #9aa69f;
        font-size: 14px;
        pointer-events: none;
        z-index: 2;
    }


/* =========================================================
   INPUT
   ========================================================= */

.zengi-input {
    width: 100%;
    height: 50px;
    padding: 0 45px 0 44px;
    border: 1px solid var(--zengi-border);
    border-radius: var(--zengi-input-radius);
    background: #fff;
    color: var(--zengi-text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}


    .zengi-input::placeholder {
        color: #a4ada8;
    }


    .zengi-input:hover {
        border-color: #c5d0ca;
    }


    .zengi-input:focus {
        border-color: var(--zengi-primary-light);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.10);
    }


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.zengi-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #89958e;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}


    .zengi-password-toggle:hover {
        background: rgba(15, 81, 50, 0.07);
        color: var(--zengi-primary);
    }


    .zengi-password-toggle:focus-visible {
        outline: 2px solid var(--zengi-primary-light);
        outline-offset: 2px;
    }


/* =========================================================
   FIELD ERROR
   ========================================================= */

.zengi-field-error {
    display: block;
    margin-top: 6px;
    color: var(--zengi-danger);
    font-size: 12px;
}


    .zengi-field-error:empty {
        display: none;
    }


/* =========================================================
   PASSWORD NOTE
   ========================================================= */

.zengi-password-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: -4px 0 22px;
    padding: 11px 13px;
    border-radius: 9px;
    background: rgba(15, 81, 50, 0.045);
    border: 1px solid rgba(15, 81, 50, 0.08);
    color: #647069;
    font-size: 11.5px;
    line-height: 1.55;
}


    .zengi-password-note i {
        margin-top: 2px;
        color: var(--zengi-primary-light);
    }


/* =========================================================
   REGISTER BUTTON
   ========================================================= */

.zengi-auth-button {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient( 135deg, var(--zengi-primary), var(--zengi-primary-light) );
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 81, 50, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}


    .zengi-auth-button i {
        font-size: 12px;
        transition: transform 0.2s ease;
    }


    .zengi-auth-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 11px 25px rgba(15, 81, 50, 0.24);
    }


        .zengi-auth-button:hover i {
            transform: translateX(3px);
        }


    .zengi-auth-button:active {
        transform: translateY(0);
    }


    .zengi-auth-button:focus-visible {
        outline: 3px solid rgba(25, 135, 84, 0.25);
        outline-offset: 2px;
    }


/* =========================================================
   LOGIN SWITCH
   ========================================================= */

.zengi-auth-switch {
    margin-top: 20px;
    text-align: center;
    color: var(--zengi-muted);
    font-size: 13px;
}


    .zengi-auth-switch a {
        color: var(--zengi-primary);
        font-weight: 650;
        text-decoration: none;
        margin-left: 4px;
        transition: color 0.2s ease;
    }


        .zengi-auth-switch a:hover {
            color: var(--zengi-primary-light);
            text-decoration: underline;
        }


/* =========================================================
   DIVIDER
   ========================================================= */

.zengi-divider {
    position: relative;
    display: flex;
    align-items: center;
    margin: 27px 0 20px;
    text-align: center;
}


    .zengi-divider::before,
    .zengi-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e7ebe8;
    }


    .zengi-divider span {
        padding: 0 13px;
        color: #9aa39e;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1.2px;
    }


/* =========================================================
   EXTERNAL LOGIN
   ========================================================= */

.zengi-external-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.zengi-external-button {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--zengi-border);
    border-radius: 9px;
    background: #fff;
    color: #37413b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}


    .zengi-external-button:hover {
        background: #f8faf9;
        border-color: #c7d1cb;
        transform: translateY(-1px);
    }


    .zengi-external-button i {
        font-size: 15px;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.zengi-auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 27px;
    color: #9aa39e;
    font-size: 10.5px;
}


    .zengi-auth-footer i {
        color: var(--zengi-primary-light);
        font-size: 10px;
    }


/* =========================================================
   INVALID INPUT STATE
   ========================================================= */

.zengi-input.input-validation-error {
    border-color: var(--zengi-danger);
}


    .zengi-input.input-validation-error:focus {
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.10);
    }


/* =========================================================
   AUTOFILL
   ========================================================= */

.zengi-input:-webkit-autofill,
.zengi-input:-webkit-autofill:hover,
.zengi-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--zengi-text);
    transition: background-color 9999s ease-in-out 0s;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .zengi-auth-page {
        padding: 30px 18px;
    }

    .zengi-auth-card {
        min-height: auto;
    }

    .zengi-auth-brand {
        padding: 40px 35px;
    }

    .zengi-auth-form {
        padding: 45px 40px;
    }

    .zengi-brand-content h1 {
        font-size: 27px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .zengi-auth-page {
        min-height: 100vh;
        padding: 15px;
        align-items: flex-start;
    }


    .zengi-auth-container {
        margin-top: 10px;
    }


    .zengi-auth-card {
        border-radius: 14px;
        box-shadow: 0 10px 35px rgba(15, 81, 50, 0.10);
    }


    /* Hide desktop brand */

    .zengi-auth-brand {
        display: none;
    }


    /* Form */

    .zengi-auth-form {
        padding: 35px 24px;
    }


    .zengi-form-content {
        max-width: none;
    }


    .zengi-mobile-logo {
        display: flex;
    }


    .zengi-form-header {
        margin-bottom: 27px;
    }


        .zengi-form-header h2 {
            font-size: 25px;
        }


        .zengi-form-header p {
            font-size: 13px;
        }


    .zengi-input {
        height: 49px;
    }


    .zengi-auth-button {
        height: 50px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .zengi-auth-page {
        padding: 10px;
    }


    .zengi-auth-form {
        padding: 30px 18px;
    }


    .zengi-form-header h2 {
        font-size: 23px;
    }


    .zengi-password-note {
        font-size: 11px;
    }


    .zengi-auth-footer {
        font-size: 9.5px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .zengi-input,
    .zengi-auth-button,
    .zengi-password-toggle,
    .zengi-external-button,
    .zengi-auth-button i {
        transition: none;
    }
}
