/* ============================================================
   v2 Login page (Views/V2/Home/Index.cshtml)
   Matches Figma node 1868-118
   ============================================================ */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

.v2-login-body {
    margin: 0;
    background: #F8F9FB;
    color: #1E1E1E;
    font-family: "DM Sans", "Inter", "Segoe UI", sans-serif;
}

.v2-login-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ---------- Left pane: white form card ---------- */

.v2-login-card-pane {
    position: relative;
    flex: 0 1 697px;
    min-width: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
}

.v2-login-language {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
}

.v2-login-card {
    width: 100%;
    max-width: 414px;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.v2-login-head {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.v2-login-logo {
    width: 48px;
    height: 50.74px;
    border-radius: 12px;
    background: linear-gradient(61deg, #00B2F9 23%, #FF00FB 87%);
}

.v2-login-heading {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.v2-login-title {
    margin: 0;
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    color: #263178;
}

.v2-login-subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.5);
}

.v2-login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.v2-login-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.v2-login-label {
    font-size: 15px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.75);
}

.v2-login-input {
    height: 40px;
    padding: 10px 16px;
    border: 1px solid #E4E7E9;
    border-radius: 8px;
    background: #ffffff;
    color: #1E1E1E;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    outline: none;
}

.v2-login-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.v2-login-input:focus {
    border-color: #5867CA;
    box-shadow: 0 0 0 3px rgba(88, 103, 202, 0.15);
}

.v2-login-failed {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(179, 42, 31, 0.08);
    color: #B32A1F;
    font-size: 14px;
}

.v2-login-failed[hidden] {
    display: none;
}

.v2-login-submit {
    height: 40px;
    padding: 10px 32px;
    border: 0;
    border-radius: 8px;
    background: #5867CA;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    margin-top: 8px;
}

.v2-login-link {
    align-self: center;
    margin-top: 8px;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #5867CA;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.v2-login-link:hover {
    color: #4a59b5;
    text-decoration: underline;
}

.v2-login-reset-success {
    margin: 0;
    padding: 12px 0;
    color: #1E1E1E;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
}

.v2-login-reset-success[hidden] {
    display: none;
}

.v2-login-submit:hover {
    background: #4a59b5;
}

.v2-login-submit:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(88, 103, 202, 0.25);
}

.v2-login-footer {
    margin: 0;
    text-align: center;
    color: rgba(0, 0, 0, 0.5);
    font-size: 15px;
    font-weight: 500;
}

/* ---------- Right pane: marketing / gradient ---------- */

.v2-login-marketing {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #5867CA 0%, #6B7AD4 50%, #7C87DD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2.5rem;
}

.v2-login-marketing-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.v2-login-marketing-glow-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 38%;
    background: rgba(255, 255, 255, 0.10);
    filter: blur(120px);
    opacity: 0.82;
}

.v2-login-marketing-glow-2 {
    width: 350px;
    height: 350px;
    top: 48%;
    left: 10%;
    background: rgba(74, 86, 181, 0.30);
    filter: blur(120px);
    opacity: 0.68;
}

.v2-login-marketing-glow-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 40%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(100px);
    opacity: 0.82;
}

.v2-login-marketing-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    text-align: center;
}

/* Placeholder "card" illustration (glassmorphic mock) */

.v2-login-marketing-illustration {
    position: relative;
    width: 298px;
    height: 162px;
}

.v2-login-marketing-illustration::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.20);
    filter: blur(80px);
}

.v2-login-marketing-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.30);
    padding: 41px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.v2-login-marketing-card-icon {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.40);
}

.v2-login-marketing-card-lines {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-login-marketing-card-line {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.40);
}

.v2-login-marketing-card-line-1 {
    width: 100%;
}

.v2-login-marketing-card-line-2 {
    width: 75%;
    background: rgba(255, 255, 255, 0.30);
}

.v2-login-marketing-card-line-3 {
    width: 90%;
    background: rgba(255, 255, 255, 0.25);
}

.v2-login-marketing-title {
    margin: 0;
    font-family: inherit;
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    color: #ffffff;
}

.v2-login-marketing-subtitle {
    margin: 0;
    font-family: inherit;
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.80);
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    .v2-login-card-pane {
        flex: 1 1 auto;
        padding: 3rem 1.5rem;
    }

    .v2-login-marketing {
        display: none;
    }
}

@media (max-width: 480px) {
    .v2-login-title {
        font-size: 28px;
        line-height: 36px;
    }
}
