﻿/* Affects: Areas/Identity/Pages/Account/Login.cshtml */

:root {
    --be-primary: #0d6efd;
    --be-primary-dark: #084298;
    --be-navy: #061a3a;
    --be-navy-2: #020b1f;
    --be-text: #071437;
    --be-muted: #6b7a99;
    --be-border: #d9e2f1;
    --be-card-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
}

body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--be-text);
    background: #f7faff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* MAIN PAGE LAYOUT */

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 42% 58%;
}

/* LEFT BRAND PANEL */

.brand-panel {
    position: relative;
    overflow: hidden;
    padding: 48px 56px;
    color: #ffffff;
    background: radial-gradient(circle at 72% 42%, rgba(0, 119, 255, 0.20), transparent 30%), radial-gradient(circle at 25% 16%, rgba(36, 147, 255, 0.22), transparent 25%), linear-gradient(145deg, var(--be-navy), var(--be-navy-2));
}

    .brand-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: linear-gradient(115deg, transparent 0%, transparent 48%, rgba(13, 110, 253, 0.055) 50%, transparent 52%), radial-gradient(circle, rgba(56, 152, 255, 0.48) 1px, transparent 1.5px);
        background-size: 100% 100%, 46px 46px;
        opacity: 0.72;
    }

    .brand-panel::after {
        content: "";
        position: absolute;
        width: 620px;
        height: 260px;
        left: 72px;
        bottom: 88px;
        border-radius: 50%;
        background: radial-gradient(ellipse at center, rgba(0, 119, 255, 0.20), transparent 70%);
        transform: rotate(-12deg);
        filter: blur(2px);
    }

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 460px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 104px;
}

.logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #1884ff, #005be8);
    box-shadow: 0 16px 40px rgba(0, 119, 255, 0.32);
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.brand-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.03em;
}

.brand-subtitle {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 15px;
    font-weight: 400;
}

.hero-title {
    font-size: 33px;
    line-height: 1.14;
    font-weight: 700;
    margin: 0 0 18px;
    letter-spacing: -0.035em;
}

    .hero-title span {
        display: block;
        color: #2e8cff;
    }

.hero-copy {
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0 0 30px;
}

.feature-list {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.feature-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    align-items: center;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 500;
    background: rgba(13, 110, 253, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

    .feature-icon.green {
        background: rgba(20, 184, 166, 0.16);
    }

    .feature-icon.purple {
        background: rgba(124, 58, 237, 0.17);
    }

    .feature-icon.gold {
        background: rgba(245, 158, 11, 0.15);
    }

.feature-title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
    font-size: 13px;
    font-weight: 400;
}

/* RIGHT LOGIN PANEL */

.login-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 32px;
    background: radial-gradient(circle at 72% 20%, rgba(13, 110, 253, 0.085), transparent 34%), linear-gradient(180deg, #f8fbff, #eef4fb);
}

.language-pill {
    position: absolute;
    top: 26px;
    right: 48px;
    border: 1px solid #e3eaf5;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 10px;
    padding: 8px 14px;
    color: #41516f;
    font-size: 13px;
    font-weight: 400;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.login-card {
    width: 100%;
    max-width: 500px;
    min-height: 550px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(219, 226, 239, 0.95);
    border-radius: 16px;
    padding: 48px 50px 42px;
    box-shadow: var(--be-card-shadow);
}

.login-heading {
    text-align: center;
    margin-bottom: 30px;
}

    .login-heading h1 {
        font-size: 25px;
        font-weight: 700;
        margin: 0 0 8px;
        letter-spacing: -0.025em;
    }

    .login-heading p {
        color: var(--be-muted);
        margin: 0;
        font-size: 14px;
        font-weight: 400;
    }

.form-label {
    color: #16213f;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.005em;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #7181a0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .input-icon svg {
        display: block;
    }

.be-input {
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--be-border);
    padding-left: 42px;
    color: #16213f;
    font-size: 14px;
    font-weight: 400;
    box-shadow: none;
}

    .be-input::placeholder {
        color: #7181a0;
        font-weight: 400;
    }

    .be-input:focus {
        border-color: #6aa8ff;
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.10);
    }

.password-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    color: #0d6efd;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
}

    .forgot-link:hover {
        color: #084fc7;
        text-decoration: underline;
    }

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #24314f;
    font-size: 13px;
    font-weight: 400;
    margin: 16px 0 18px;
}

.be-btn-primary {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(90deg, #005fff, #006eff);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

    .be-btn-primary:hover {
        background: linear-gradient(90deg, #0057e8, #0067f0);
        box-shadow: 0 14px 28px rgba(13, 110, 253, 0.24);
    }

    .be-btn-primary:active {
        transform: translateY(1px);
    }

.btn-icon {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-icon svg {
        display: block;
    }

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #7c88a1;
    font-size: 12px;
    font-weight: 400;
    margin: 22px 0;
}

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e4eaf3;
    }

/* SSO BUTTONS */

.sso-stack {
    display: grid;
    gap: 9px;
}

.sso-btn {
    width: 100%;
    height: 38px;
    border-radius: 7px;
    border: 1px solid var(--be-border);
    background: #ffffff;
    color: #17213b;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

    .sso-btn:hover {
        background: #f8fbff;
        border-color: #cbd7ea;
        color: #17213b;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

.sso-icon {
    width: 18px;
    text-align: center;
    font-weight: 700;
}

.microsoft-icon {
    color: #f25022;
}

.google-icon {
    color: #4285f4;
}

.contact-admin {
    text-align: center;
    margin: 26px 0 2px;
    font-size: 13px;
    font-weight: 400;
    color: #253452;
}

    .contact-admin a {
        color: #0d6efd;
        font-weight: 600;
        text-decoration: none;
    }

        .contact-admin a:hover {
            color: #084fc7;
            text-decoration: underline;
        }

/* FOOTER */

.login-footer {
    width: 100%;
    max-width: 620px;
    margin-top: 38px;
    text-align: center;
    color: #50627f;
    font-size: 12px;
    font-weight: 400;
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-links {
    display: inline-flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 18px;
}

    .footer-links a {
        color: #50627f;
        text-decoration: none;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

/* VALIDATION */

.validation-summary-errors {
    color: #dc3545;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 18px;
}

.field-validation-error {
    color: #dc3545;
    font-size: 12px;
    font-weight: 400;
    margin-top: 5px;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .login-shell {
        grid-template-columns: 43% 57%;
    }

    .brand-panel {
        padding: 44px 48px;
    }

    .brand-logo {
        margin-bottom: 82px;
    }
}

@media (max-width: 992px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
    }

    .language-pill {
        right: 20px;
    }
}

@media (max-width: 576px) {
    .login-panel {
        padding: 80px 18px 32px;
    }

    .login-card {
        max-width: 100%;
        min-height: auto;
        padding: 34px 26px;
    }

    .login-heading h1 {
        font-size: 23px;
    }

    .trust-row {
        gap: 12px;
    }

    .footer-links {
        margin-left: 0;
        gap: 14px;
    }
}
