﻿/* =========================================================
   ZENGI TECHNOLOGIES
   IDENTITY LOGIN
   ========================================================= */

:root {
    --zengi-navy: #0D1D4E;
    --zengi-green: #34803C;
    --zengi-blue: #0488C4;
    --zengi-cyan: #0FCABF;
    --zengi-teal: #058290;
    --zengi-lime: #B1D884;
    --zengi-light-green: #71B766;
    --zengi-white: #FFFFFF;
    --zengi-background: #F5F8FA;
    --zengi-text: #182033;
    --zengi-muted: #687386;
    --zengi-border: #DCE3EA;
}


/* =========================================================
   PAGE
   ========================================================= */

.zengi-login-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 25px;
    background: radial-gradient( circle at 10% 20%, rgba(15, 202, 191, 0.08), transparent 30% ), radial-gradient( circle at 90% 80%, rgba(4, 136, 196, 0.08), transparent 30% ), var(--zengi-background);
}


/* =========================================================
   MAIN CARD
   ========================================================= */

.zengi-login-card {
    width: 100%;
    max-width: 1100px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 43% 57%;
    background: var(--zengi-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(13, 29, 78, 0.14);
}


/* =========================================================
   BRAND PANEL
   ========================================================= */

.zengi-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 55px 50px;
    color: var(--zengi-white);
    overflow: hidden;
    background: linear-gradient( 145deg, var(--zengi-navy) 0%, #10265C 45%, var(--zengi-teal) 100% );
}


    /* Decorative circles */

    .zengi-login-brand::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        top: -140px;
        right: -120px;
        border: 1px solid rgba(255,255,255,0.10);
        box-shadow: 0 0 0 50px rgba(255,255,255,0.025), 0 0 0 100px rgba(255,255,255,0.015);
    }


    .zengi-login-brand::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        bottom: -130px;
        left: -100px;
        background: rgba(177, 216, 132, 0.08);
    }


/* =========================================================
   BRAND CONTENT
   ========================================================= */

.zengi-brand-content {
    position: relative;
    z-index: 2;
}


.zengi-logo-mark {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border-radius: 18px;
    background: rgba(177, 216, 132, 0.14);
    border: 1px solid rgba(177, 216, 132, 0.30);
    color: var(--zengi-lime);
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}


.zengi-brand-text h1 {
    margin: 0 0 10px;
    color: var(--zengi-white);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}


.zengi-brand-tagline {
    margin: 0 0 22px;
    color: var(--zengi-lime);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}


.zengi-brand-description {
    max-width: 390px;
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.8;
}


/* =========================================================
   FEATURES
   ========================================================= */

.zengi-features {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.zengi-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}


.zengi-feature-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: var(--zengi-lime);
    font-size: 15px;
}


.zengi-feature strong {
    display: block;
    margin-bottom: 3px;
    color: var(--zengi-white);
    font-size: 13px;
    font-weight: 600;
}


.zengi-feature span {
    display: block;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
}


/* =========================================================
   BRAND FOOTER
   ========================================================= */

.zengi-brand-footer {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
}


/* =========================================================
   LOGIN FORM PANEL
   ========================================================= */

.zengi-login-form {
    display: flex;
    align-items: center;
    background: var(--zengi-white);
}


.zengi-form-container {
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    padding: 55px 55px;
}


/* =========================================================
   MOBILE LOGO
   ========================================================= */

.zengi-mobile-logo {
    display: none;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.zengi-form-header {
    margin-bottom: 35px;
}


.zengi-form-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--zengi-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


.zengi-form-header h2 {
    margin: 0 0 8px;
    color: var(--zengi-navy);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
}


.zengi-form-header p {
    margin: 0;
    color: var(--zengi-muted);
    font-size: 14px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.zengi-input-group {
    margin-bottom: 22px;
}


    .zengi-input-group > label {
        display: block;
        margin-bottom: 8px;
        color: var(--zengi-text);
        font-size: 13px;
        font-weight: 600;
    }


.zengi-password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}


    .zengi-password-label label {
        margin: 0;
        color: var(--zengi-text);
        font-size: 13px;
        font-weight: 600;
    }


    .zengi-password-label a {
        color: var(--zengi-blue);
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: 0.2s ease;
    }


        .zengi-password-label a:hover {
            color: var(--zengi-teal);
        }


/* Input wrapper */

.zengi-input-wrapper {
    position: relative;
}


    .zengi-input-wrapper > i {
        position: absolute;
        left: 17px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 3;
        color: var(--zengi-green);
        font-size: 14px;
    }


    .zengi-input-wrapper .form-control {
        height: 54px;
        padding: 0 48px;
        border: 1px solid var(--zengi-border);
        border-radius: 10px;
        background: #FAFCFD;
        color: var(--zengi-text);
        font-size: 14px;
        box-shadow: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }


        .zengi-input-wrapper .form-control::placeholder {
            color: #A6AFBB;
        }


        .zengi-input-wrapper .form-control:hover {
            border-color: #C8D2DC;
        }


        .zengi-input-wrapper .form-control:focus {
            background: var(--zengi-white);
            border-color: var(--zengi-green);
            box-shadow: 0 0 0 4px rgba(52, 128, 60, 0.09);
        }


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.zengi-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #8993A2;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s ease;
}


    .zengi-password-toggle:hover {
        color: var(--zengi-green);
        background: rgba(52, 128, 60, 0.07);
    }


/* =========================================================
   VALIDATION
   ========================================================= */

.zengi-validation {
    margin-bottom: 20px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #FFF4F4;
    color: #C0392B;
    font-size: 12px;
}


.zengi-field-error {
    display: block;
    margin-top: 6px;
    color: #C0392B;
    font-size: 11px;
}


/* =========================================================
   REMEMBER ME
   ========================================================= */

.zengi-login-options {
    margin: 2px 0 25px;
}


.zengi-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: var(--zengi-muted);
    font-size: 12px;
}


    .zengi-checkbox input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


.zengi-checkmark {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--zengi-border);
    border-radius: 5px;
    background: var(--zengi-white);
    transition: 0.2s ease;
}


.zengi-checkbox input:checked + .zengi-checkmark {
    background: var(--zengi-green);
    border-color: var(--zengi-green);
}


    .zengi-checkbox input:checked + .zengi-checkmark::after {
        content: "\f00c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: white;
        font-size: 9px;
    }


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.zengi-login-button {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient( 135deg, var(--zengi-green), var(--zengi-teal) );
    color: var(--zengi-white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(52, 128, 60, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


    .zengi-login-button:hover {
        color: var(--zengi-white);
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(52, 128, 60, 0.28);
    }


    .zengi-login-button:active {
        transform: translateY(0);
    }


/* =========================================================
   REGISTER
   ========================================================= */

.zengi-register {
    margin-top: 24px;
    text-align: center;
    color: var(--zengi-muted);
    font-size: 12px;
}


    .zengi-register a {
        margin-left: 4px;
        color: var(--zengi-green);
        font-weight: 600;
        text-decoration: none;
    }


        .zengi-register a:hover {
            color: var(--zengi-teal);
        }


/* =========================================================
   EXTERNAL LOGIN DIVIDER
   ========================================================= */

.zengi-divider {
    position: relative;
    margin: 28px 0;
    text-align: center;
}


    .zengi-divider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: var(--zengi-border);
    }


    .zengi-divider span {
        position: relative;
        padding: 0 12px;
        background: var(--zengi-white);
        color: #9AA4B2;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1px;
    }


/* =========================================================
   EXTERNAL BUTTONS
   ========================================================= */

.zengi-external-buttons {
    display: flex;
    gap: 10px;
}


.zengi-external-button {
    flex: 1;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--zengi-border);
    border-radius: 9px;
    background: var(--zengi-white);
    color: var(--zengi-text);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
}


    .zengi-external-button:hover {
        border-color: var(--zengi-green);
        background: rgba(52, 128, 60, 0.03);
    }


    .zengi-external-button i {
        font-size: 13px;
    }


/* =========================================================
   SECURITY
   ========================================================= */

.zengi-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
    color: #9AA4B2;
    font-size: 10px;
    text-align: center;
}


    .zengi-security i {
        color: var(--zengi-green);
        font-size: 11px;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .zengi-login-card {
        max-width: 600px;
        grid-template-columns: 1fr;
    }

    .zengi-login-brand {
        display: none;
    }

    .zengi-login-form {
        min-height: 650px;
    }

    .zengi-form-container {
        max-width: 470px;
        padding: 50px 40px;
    }

    .zengi-mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-bottom: 35px;
        color: var(--zengi-navy);
        font-size: 18px;
        font-weight: 700;
    }

    .zengi-mobile-logo-mark {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: var(--zengi-navy);
        color: var(--zengi-lime);
        font-size: 16px;
    }
}


@media (max-width: 576px) {

    .zengi-login-page {
        min-height: 100vh;
        padding: 20px 15px;
    }

    .zengi-login-card {
        min-height: auto;
        border-radius: 18px;
    }

    .zengi-login-form {
        min-height: auto;
    }

    .zengi-form-container {
        padding: 35px 24px;
    }

    .zengi-form-header h2 {
        font-size: 28px;
    }

    .zengi-external-buttons {
        flex-direction: column;
    }

    .zengi-external-button {
        width: 100%;
    }
}
/* =========================================================
   ZENGI AUTH SUCCESS / ERROR PAGES
   ========================================================= */

.zengi-success-content,
.zengi-error-content {
    text-align: center;
}


/* =========================================================
   SUCCESS ICON
   ========================================================= */

.zengi-success-icon,
.zengi-error-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 27px;
}


.zengi-success-icon {
    color: var(--zengi-green);
    background: rgba(52, 128, 60, 0.10);
    box-shadow: 0 0 0 8px rgba(52, 128, 60, 0.04);
}


.zengi-error-icon {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.10);
    box-shadow: 0 0 0 8px rgba(220, 53, 69, 0.04);
}


/* =========================================================
   INFO BOX
   ========================================================= */

.zengi-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0;
    padding: 14px 16px;
    border-radius: 11px;
    text-align: left;
    background: rgba(4, 136, 196, 0.05);
    border: 1px solid rgba(4, 136, 196, 0.12);
    color: #687586;
    font-size: 11px;
    line-height: 1.6;
}


    .zengi-info-box > i {
        margin-top: 2px;
        color: var(--zengi-blue);
        font-size: 14px;
    }


.zengi-warning-box {
    background: rgba(220, 53, 69, 0.04);
    border-color: rgba(220, 53, 69, 0.12);
}


    .zengi-warning-box > i {
        color: #dc3545;
    }


/* =========================================================
   BUTTON LINK
   ========================================================= */

.zengi-button-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


/* =========================================================
   AUTH LINKS
   ========================================================= */

.zengi-auth-links {
    margin-top: 22px;
    text-align: center;
}


    .zengi-auth-links a {
        color: var(--zengi-blue);
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
        transition: color .2s ease;
    }


        .zengi-auth-links a:hover {
            color: var(--zengi-teal);
            text-decoration: underline;
        }


/* =========================================================
   SECONDARY BUTTON
   ========================================================= */

.zengi-secondary-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 20px;
    border: 1px solid #dce2e8;
    border-radius: 8px;
    background: #fff;
    color: var(--zengi-navy);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}


    .zengi-secondary-button:hover {
        border-color: var(--zengi-blue);
        color: var(--zengi-blue);
        background: rgba(4, 136, 196, 0.03);
    }


/* =========================================================
   ERROR ACTIONS
   ========================================================= */

.zengi-error-actions {
    margin-top: 20px;
}


/* =========================================================
   STATUS MESSAGE
   ========================================================= */

.zengi-status-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    margin: 20px 0;
    padding: 13px 38px 13px 14px;
    border-radius: 10px;
    text-align: left;
    font-size: 11px;
    line-height: 1.5;
}


.zengi-status-success {
    color: var(--zengi-green);
    background: rgba(52, 128, 60, 0.07);
    border: 1px solid rgba(52, 128, 60, 0.14);
}


.zengi-status-error {
    color: #b42332;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.14);
}


.zengi-status-icon {
    flex: 0 0 auto;
    font-size: 14px;
}


.zengi-status-text {
    flex: 1;
}


.zengi-status-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: inherit;
    opacity: .55;
    cursor: pointer;
}


    .zengi-status-close:hover {
        opacity: 1;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 575.98px) {

    .zengi-success-icon,
    .zengi-error-icon {
        width: 60px;
        height: 60px;
        font-size: 23px;
    }

    .zengi-info-box {
        font-size: 10px;
    }
}

/* =========================================================
   EXTERNAL LOGIN CONFIRMATION
   ========================================================= */

.zengi-provider-confirmation {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(52, 128, 60, 0.16);
    border-radius: 12px;
    background: rgba(52, 128, 60, 0.045);
}


.zengi-provider-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--zengi-blue);
    background: rgba(4, 136, 196, 0.10);
    font-size: 17px;
}


.zengi-provider-confirmation > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}


    .zengi-provider-confirmation > div:nth-child(2) span {
        color: #87919d;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }


    .zengi-provider-confirmation > div:nth-child(2) strong {
        margin-top: 2px;
        color: var(--zengi-navy);
        font-size: 13px;
        font-weight: 700;
    }


.zengi-provider-check {
    margin-left: auto;
    color: var(--zengi-green);
    font-size: 18px;
}


/* =========================================================
   INFORMATION BOX
   ========================================================= */

.zengi-external-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 13px 15px;
    border-radius: 10px;
    background: rgba(177, 216, 132, 0.12);
    color: #687586;
    font-size: 11px;
    line-height: 1.6;
}


    .zengi-external-info > i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: var(--zengi-green);
        font-size: 14px;
    }


/* =========================================================
   PROVIDER SPECIFIC ICONS
   ========================================================= */

.zengi-provider-icon .fa-google {
    color: #4285f4;
}

.zengi-provider-icon .fa-facebook-f {
    color: #1877f2;
}

.zengi-provider-icon .fa-microsoft {
    color: #0078d4;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .zengi-provider-confirmation {
        margin-top: 5px;
    }
}


@media (max-width: 575.98px) {

    .zengi-provider-confirmation {
        padding: 12px;
    }

    .zengi-provider-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .zengi-external-info {
        font-size: 10px;
    }
}
/* =========================================================
   RECOVERY CODE
   ========================================================= */

.zengi-recovery-code-input {
    letter-spacing: 1px;
    font-weight: 600;
}


.zengi-recovery-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 22px;
    padding: 13px 15px;
    border: 1px solid rgba(220, 153, 53, 0.18);
    border-radius: 10px;
    background: rgba(220, 153, 53, 0.06);
    color: #7a6a4d;
    font-size: 11px;
    line-height: 1.55;
}


    .zengi-recovery-warning > i {
        flex: 0 0 auto;
        margin-top: 2px;
        color: #c58b2d;
    }


/* =========================================================
   DEVELOPMENT WARNING
   ========================================================= */

.zengi-development-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 22px 0;
    padding: 14px 16px;
    border: 1px solid rgba(220, 153, 53, 0.18);
    border-radius: 11px;
    background: rgba(220, 153, 53, 0.055);
    text-align: left;
}


    .zengi-development-warning > i {
        margin-top: 2px;
        color: #c58b2d;
        font-size: 15px;
    }


    .zengi-development-warning strong {
        display: block;
        margin-bottom: 3px;
        color: var(--zengi-navy);
        font-size: 12px;
    }


    .zengi-development-warning p {
        margin: 0;
        color: #7b8794;
        font-size: 10px;
        line-height: 1.55;
    }


/* =========================================================
   PASSWORD SECURITY
   ========================================================= */

.zengi-password-security {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    padding: 11px 13px;
    border-radius: 9px;
    background: rgba(52, 128, 60, 0.045);
    color: #74808c;
    font-size: 10px;
    line-height: 1.5;
}


    .zengi-password-security > i {
        flex: 0 0 auto;
        margin-top: 1px;
        color: var(--zengi-green);
    }


/* =========================================================
   SIMPLE LOGOUT CARD
   ========================================================= */

.zengi-simple-auth-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 45px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 25px 70px rgba(15, 39, 66, 0.10);
    text-align: center;
}


.zengi-simple-auth-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    color: var(--zengi-blue);
    background: rgba(4, 136, 196, 0.08);
    font-size: 26px;
}


.zengi-simple-auth-card h1 {
    margin: 8px 0 12px;
    color: var(--zengi-navy);
    font-size: 27px;
    font-weight: 700;
}


.zengi-simple-auth-card > p {
    max-width: 390px;
    margin: 0 auto 25px;
    color: #7b8794;
    font-size: 13px;
    line-height: 1.7;
}


.zengi-logout-form {
    margin-top: 22px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    .zengi-simple-auth-card {
        padding: 35px 24px;
    }

        .zengi-simple-auth-card h1 {
            font-size: 23px;
        }

    .zengi-recovery-warning,
    .zengi-development-warning {
        font-size: 10px;
    }
}