/* =========================================================
   WATER MANAGEMENT SYSTEM
   IDENTITY / AUTHENTICATION UI
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


/* =========================================================
   PAGE BACKGROUND
   ========================================================= */

.identity-page {
    min-height: 100vh;
    background: radial-gradient( circle at 10% 20%, rgba(37, 99, 235, 0.18), transparent 30% ), radial-gradient( circle at 90% 80%, rgba(6, 182, 212, 0.20), transparent 30% ), linear-gradient( 135deg, #eff6ff 0%, #f8fbff 50%, #ecfeff 100% );
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


/* =========================================================
   MAIN AUTH CONTAINER
   ========================================================= */

.identity-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.identity-page h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}


/* Hide the external authentication section */

.identity-page .row > div:nth-child(2) {
    display: none !important;
}


/* Center the login column */

.identity-page .row {
    justify-content: center;
}

    .identity-page .row > div:first-child {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
    }


/* =========================================================
   CARD
   ========================================================= */

.identity-page .login-container,
.identity-page .register-container {
    width: 100%;
}


/* =========================================================
   FORM
   ========================================================= */

.identity-page form {
    background: #ffffff;
    padding: 38px;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.10), 0 5px 15px rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
}


    /* =========================================================
   WATER LOGO
   ========================================================= */

    .identity-page form::before {
        content: "💧";
        display: flex;
        align-items: center;
        justify-content: center;
        width: 70px;
        height: 70px;
        margin: 0 auto 18px;
        border-radius: 20px;
        font-size: 36px;
        background: linear-gradient( 135deg, #2563eb, #06b6d4 );
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    }


/* =========================================================
   BRANDING
   ========================================================= */

.identity-page h1 {
    text-align: center;
    margin-bottom: 8px;
}

    .identity-page h1::after {
        content: "Water Management System";
        display: block;
        font-size: 14px;
        font-weight: 400;
        color: #64748b;
        margin-top: 8px;
    }


/* =========================================================
   LABELS
   ========================================================= */

.identity-page label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.identity-page input.form-control {
    height: 52px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 12px 15px;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


    .identity-page input.form-control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    }


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.identity-page button[type="submit"] {
    width: 100%;
    height: 52px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: linear-gradient( 135deg, #2563eb, #06b6d4 );
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


    .identity-page button[type="submit"]:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
    }


/* =========================================================
   LINKS
   ========================================================= */

.identity-page a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}


    .identity-page a:hover {
        color: #1d4ed8;
        text-decoration: underline;
    }


/* =========================================================
   REMEMBER ME
   ========================================================= */

.identity-page .form-check {
    margin-top: 12px;
}

.identity-page .form-check-input {
    width: 18px;
    height: 18px;
}


/* =========================================================
   VALIDATION
   ========================================================= */

.identity-page .text-danger {
    font-size: 13px;
}

.identity-page .validation-summary-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
}


/* =========================================================
   BOTTOM LINKS
   ========================================================= */

.identity-page .auth-links {
    text-align: center;
    margin-top: 20px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .identity-main {
        padding: 15px;
    }

    .identity-page form {
        padding: 25px 20px;
        border-radius: 18px;
    }

    .identity-page h1 {
        font-size: 1.7rem;
    }
}

/* =========================================================
   REGISTER PAGE
   ========================================================= */

.register-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* =========================================================
   REGISTER CARD
   ========================================================= */

.register-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    padding: 38px;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12), 0 5px 20px rgba(37, 99, 235, 0.06);
}


/* =========================================================
   BRAND
   ========================================================= */

.register-brand {
    text-align: center;
    margin-bottom: 28px;
}

    .register-brand .water-logo {
        width: 70px;
        height: 70px;
        margin: 0 auto 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;
        font-size: 36px;
        background: linear-gradient( 135deg, #2563eb, #06b6d4 );
        box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
    }


    .register-brand h1 {
        margin: 0;
        color: #0f172a;
        font-size: 30px;
        font-weight: 700;
    }


    .register-brand p {
        margin-top: 8px;
        color: #64748b;
        font-size: 15px;
    }


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    margin-bottom: 18px;
}


    .form-group label {
        display: block;
        margin-bottom: 7px;
        color: #334155;
        font-size: 14px;
        font-weight: 600;
    }


/* =========================================================
   INPUT
   ========================================================= */

.register-card .form-control,
.register-card .form-select {
    height: 50px;
    border-radius: 11px;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    font-size: 15px;
    background-color: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease;
}


    .register-card .form-control:focus,
    .register-card .form-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
    }


/* =========================================================
   ACCOUNT TYPE
   ========================================================= */

.register-card .form-select {
    cursor: pointer;
}


/* =========================================================
   BUTTON
   ========================================================= */

.register-button {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient( 135deg, #2563eb, #06b6d4 );
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.20);
    transition: transform .2s ease, box-shadow .2s ease;
}


    .register-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
    }


/* =========================================================
   LOGIN LINK
   ========================================================= */

.login-link {
    text-align: center;
    margin-top: 22px;
    color: #64748b;
    font-size: 14px;
}


    .login-link a {
        color: #2563eb;
        font-weight: 600;
        text-decoration: none;
    }


        .login-link a:hover {
            text-decoration: underline;
        }


/* =========================================================
   VALIDATION
   ========================================================= */

.register-card .text-danger {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .register-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .register-brand h1 {
        font-size: 26px;
    }

    .identity-main {
        padding: 15px;
    }
}



/* =========================================================
   WATER MANAGEMENT LOGIN PAGE
   ========================================================= */

.water-auth-page {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, #eff6ff 0%, #f8fafc 45%, #ecfeff 100% );
    padding: 40px 20px;
}


/* =========================================================
   BACKGROUND DECORATIONS
   ========================================================= */

.water-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.water-bg-shape-1 {
    width: 450px;
    height: 450px;
    background: rgba(37, 99, 235, 0.08);
    top: -220px;
    left: -180px;
}

.water-bg-shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.09);
    bottom: -200px;
    right: -150px;
}

.water-bg-shape-3 {
    width: 180px;
    height: 180px;
    background: rgba(96, 165, 250, 0.08);
    top: 15%;
    right: 8%;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.water-auth-container {
    width: 100%;
    max-width: 1050px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14), 0 10px 30px rgba(37, 99, 235, 0.06);
}


/* =========================================================
   BRAND PANEL
   ========================================================= */

.water-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: 55px;
    color: #ffffff;
    background: radial-gradient( circle at 20% 20%, rgba(96, 165, 250, 0.35), transparent 28% ), linear-gradient( 145deg, #1d4ed8, #2563eb 50%, #0891b2 );
}


    .water-brand-panel::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,0.12);
        right: -120px;
        bottom: -120px;
    }


/* =========================================================
   BRAND CONTENT
   ========================================================= */

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 430px;
}


/* =========================================================
   WATER LOGO
   ========================================================= */

.water-logo {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px;
    margin-bottom: 25px;
    border-radius: 24px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(10px);
}

    .water-logo svg {
        width: 100%;
        height: 100%;
    }


/* =========================================================
   BADGE
   ========================================================= */

.brand-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 30px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* =========================================================
   BRAND HEADING
   ========================================================= */

.brand-content h1 {
    margin: 20px 0 18px;
    font-size: 43px;
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: -1.5px;
}

    .brand-content h1 span {
        display: block;
        color: #bae6fd;
    }


/* =========================================================
   DESCRIPTION
   ========================================================= */

.brand-description {
    margin: 0 0 32px;
    color: rgba(255,255,255,0.78);
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   FEATURES
   ========================================================= */

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}


.feature-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
}


    .feature-icon svg {
        width: 23px;
        height: 23px;
    }


.brand-feature strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}


.brand-feature small {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,0.62);
    font-size: 12px;
}


/* =========================================================
   LOGIN PANEL
   ========================================================= */

.water-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 55px;
}


.login-card {
    width: 100%;
    max-width: 390px;
}


/* =========================================================
   MOBILE LOGO
   ========================================================= */

.mobile-water-logo {
    display: none;
    width: 62px;
    height: 62px;
    padding: 13px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: linear-gradient( 135deg, #2563eb, #06b6d4 );
}

    .mobile-water-logo svg {
        width: 100%;
        height: 100%;
    }


/* =========================================================
   LOGIN HEADING
   ========================================================= */

.login-heading {
    margin-bottom: 30px;
}


.login-eyebrow {
    color: #2563eb;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.8px;
}


.login-heading h2 {
    margin: 8px 0 7px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.7px;
}


.login-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}


/* =========================================================
   FORM
   ========================================================= */

.water-form-group {
    margin-bottom: 20px;
}


    .water-form-group label {
        display: block;
        margin-bottom: 8px;
        color: #334155;
        font-size: 13px;
        font-weight: 650;
    }


.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


    .password-label-row a {
        color: #2563eb;
        font-size: 12px;
        font-weight: 600;
        text-decoration: none;
    }


        .password-label-row a:hover {
            text-decoration: underline;
        }


/* =========================================================
   INPUT
   ========================================================= */

.water-input {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 14px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


    .water-input:focus-within {
        border-color: #3b82f6;
        background: #ffffff;
        box-shadow: 0 0 0 4px rgba(37,99,235,0.09);
    }


    .water-input svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        color: #94a3b8;
    }


    .water-input input {
        width: 100%;
        height: 100%;
        border: none;
        outline: none;
        background: transparent;
        color: #0f172a;
        font-size: 14px;
    }


        .water-input input::placeholder {
            color: #94a3b8;
        }


/* =========================================================
   REMEMBER
   ========================================================= */

.login-options {
    margin: 4px 0 20px;
}


.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
}


    .remember-option input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }


.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    transition: all .2s ease;
}


.remember-option input:checked + .custom-checkbox {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: inset 0 0 0 3px #ffffff;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.water-login-button {
    width: 100%;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient( 135deg, #2563eb, #0891b2 );
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(37,99,235,0.20);
    transition: transform .2s ease, box-shadow .2s ease;
}


    .water-login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 13px 28px rgba(37,99,235,0.28);
    }


    .water-login-button svg {
        width: 18px;
        height: 18px;
    }


/* =========================================================
   REGISTER
   ========================================================= */

.register-prompt {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}


    .register-prompt a {
        margin-left: 4px;
        color: #2563eb;
        font-weight: 650;
        text-decoration: none;
    }


        .register-prompt a:hover {
            text-decoration: underline;
        }


/* =========================================================
   VALIDATION
   ========================================================= */

.water-validation {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12px;
}


.water-field-error {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: 11px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .water-auth-container {
        max-width: 520px;
        grid-template-columns: 1fr;
    }

    .water-brand-panel {
        display: none;
    }

    .water-login-panel {
        padding: 45px 35px;
    }

    .mobile-water-logo {
        display: block;
    }
}


@media (max-width: 576px) {

    .water-auth-page {
        padding: 15px;
        align-items: center;
    }

    .water-auth-container {
        min-height: auto;
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(15,23,42,0.12);
    }

    .water-login-panel {
        padding: 32px 22px;
    }

    .login-heading {
        text-align: center;
        margin-bottom: 25px;
    }

        .login-heading h2 {
            font-size: 25px;
        }
}