﻿:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --navy: #14213d;
    --muted: #718096;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #003a75f5;
    color: #BAE6FD;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1000px;
    min-height: 570px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 65px rgba(30, 50, 90, .10);
}

/* Branding panel */

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: white;
    background: linear-gradient(145deg, #14213d, #204a87);
    overflow: hidden;
}

    .brand-panel::before,
    .brand-panel::after {
        content: "";
        position: absolute;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 50%;
        pointer-events: none;
    }

    .brand-panel::before {
        width: 350px;
        height: 350px;
        right: -160px;
        top: 90px;
    }

    .brand-panel::after {
        width: 250px;
        height: 250px;
        right: -110px;
        top: 140px;
    }

.brand-content,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    font-size: 23px;
}

.brand-heading {
    margin-top: 35px;
    font-size: 35px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.8px;
}

.brand-description {
    max-width: 340px;
    margin-top: 18px;
    color: #d4e0f4;
    font-size: 15px;
    line-height: 1.8;
}

.brand-features {
    margin-top: 30px;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
    font-size: 14px;
    color: #e8effb;
}

    .brand-feature i {
        color: #93c5fd;
        font-size: 18px;
    }

.brand-footer {
    color: #c5d4eb;
    font-size: 12px;
}

/* Login panel */

.form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.login-form {
    width: 100%;
    max-width: 350px;
}

.form-heading {
    margin-bottom: 8px;
    font-size: 29px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -.7px;
}

.form-subtitle {
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.form-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.input-group-custom {
    position: relative;
    margin-bottom: 21px;
}

    .input-group-custom .form-control {
        height: 49px;
        padding: 12px 14px;
        border: 1px solid var(--border);
        border-radius: 9px;
        font-size: 14px;
        box-shadow: none;
    }

        .input-group-custom .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37,99,235,.10);
        }

.password-control {
    position: relative;
}

    .password-control .form-control {
        padding-right: 46px;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    padding: 4px;
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

    .password-toggle:hover {
        color: var(--primary);
    }

.remember-label {
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-login {
    width: 100%;
    height: 49px;
    margin-top: 23px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}

    .btn-login:hover {
        background: var(--primary-dark);
        color: white;
    }

    .btn-login:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 25px;
    color: #94a3b8;
    font-size: 12px;
}

.validation-summary-errors {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

.field-validation-error {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #dc2626;
}

.field-validation-valid {
    display: none;
}

@@media (max-width: 768px) {
    .login-wrapper {
        padding: 16px;
    }

    .login-container {
        grid-template-columns: 1fr;
        max-width: 440px;
        min-height: auto;
    }

    .brand-panel {
        min-height: 210px;
        padding: 27px;
    }

    .brand-heading {
        margin-top: 35px;
        font-size: 26px;
    }

    .brand-description,
    .brand-features,
    .brand-footer {
        display: none;
    }

    .form-panel {
        padding: 35px 27px;
    }

    .form-heading {
        font-size: 26px;
    }
}
#brandFullLogo {
    height: 76px; /* ← increased from 36px */
    width: 180px;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* ← centers it */
    transition: opacity var(--ease);
}
