﻿/* ============================================================
   SCPlatform Login
============================================================ */

input::-ms-reveal,
input::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-password-toggle-button {
    display: none;
}

html,
body.login-body-v2 {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.login-split {
    width: 100%;
    min-height: 100vh;
    display: flex;
}

.login-loading-modal {
    border-radius: 18px;
    border: 0;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
}

/* LEFT */

.login-left {
    width: 40%;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 10%, rgba(15,118,110,.35), transparent 32%), radial-gradient(circle at 80% 85%, rgba(0,100,55,.30), transparent 34%), linear-gradient(145deg, #003b24 0%, #006437 48%, #021f14 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient( 155deg, rgba(255,255,255,.075) 0px, rgba(255,255,255,.075) 1px, transparent 1px, transparent 18px );
        opacity: .18;
        pointer-events: none;
    }

.login-left-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 470px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 52px;
}

.login-brand-logo {
    height: 74px;
    width: auto;
    opacity: 1;
    filter: brightness(1.25) contrast(1.15) drop-shadow(0 14px 28px rgba(0,0,0,.28));
}

.login-hero-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 14px;
}

.login-hero-highlight {
    color: #22c55e;
}

.login-hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.78);
    line-height: 1.5;
    margin: 0;
}

.login-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-feature {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    column-gap: 18px;
}

.login-feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: #22c55e;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 12px 30px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .login-feature-icon i {
        font-size: 21px;
        line-height: 1;
    }

.login-feature-title {
    font-size: 15px;
    font-weight: 800;
}

.login-feature-desc {
    font-size: 13px;
    color: rgba(255,255,255,.68);
}

.login-left-footer {
    font-size: 12px;
    color: rgba(255,255,255,.82);
}

/* RIGHT */

.login-right {
    width: 60%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: radial-gradient(circle at 95% 85%, rgba(0,100,55,.08), transparent 28%), #fbfbfc;
}

.login-right-inner {
    width: 100%;
    max-width: 520px;
}

.login-card-v2 {
    width: 100%;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(226,232,240,.9);
    border-radius: 24px;
    padding: 46px 56px;
    box-shadow: 0 28px 70px rgba(15,23,42,.10);
    backdrop-filter: blur(10px);
}

.login-card-header {
    margin-bottom: 26px;
}

.login-environment-indicator {
    display: flex;
    justify-content: flex-end;
    margin: -8px -4px 18px 0;
}

.login-environment-badge {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    padding: 7px 11px;
    text-transform: uppercase;
}

.login-environment-badge-dev {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1e3a8a;
}

.login-environment-badge-uat {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.login-card-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 8px;
}

.login-card-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* FORM */

.login-field {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.login-input-wrap {
    position: relative;
    width: 100%;
}

.login-input {
    width: 100%;
    height: 54px;
    padding: 0 48px;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
}

.login-code-input {
    letter-spacing: .06em;
    text-transform: uppercase;
}

    .login-input:focus {
        outline: none;
        border-color: #006437;
        box-shadow: 0 0 0 4px rgba(0,100,55,.12);
    }

.login-input-icon,
.login-input-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 2;
}

.login-input-icon {
    left: 16px;
}

.login-input-toggle {
    right: 16px;
    cursor: pointer;
}

.login-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 20px;
    font-size: 13px;
}

.login-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
}

.login-btn-primary {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #006437 0%, #0F766E 100%);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(0,100,55,.24);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, transform .18s ease, box-shadow .18s ease;
}

    .login-btn-primary:hover {
        background: linear-gradient(90deg, #0F766E 0%, #006437 100%);
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: 0 16px 34px rgba(0,100,55,.32);
    }

.login-env-select {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px 12px;
    margin: 22px 0 0;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.login-label-sm {
    font-size: 12px;
    color: #475569;
}

.login-select-sm {
    width: 100%;
    height: 38px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid #dbe2ea;
    padding: 0 10px;
    background: #fff;
}

.login-env-help {
    grid-column: 1 / -1;
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.4;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 28px 0 18px;
}

    .login-divider::before,
    .login-divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #e5e7eb;
    }

    .login-divider span {
        padding: 0 12px;
        font-size: 12px;
        color: #64748b;
    }

.login-sso-btn {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #dbe2ea;
    background: #fff;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    opacity: .62;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.login-sso-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.login-help-text {
    text-align: center;
    margin: 20px 0 0;
    font-size: 13px;
    color: #64748b;
}

.login-card-v2 a,
.login-link,
.login-link-muted {
    color: #006437 !important;
    text-decoration: none !important;
    font-weight: 700;
}

    .login-card-v2 a:hover,
    .login-link:hover,
    .login-link-muted:hover {
        color: #0F766E !important;
        text-decoration: underline !important;
    }

.login-version {
    text-align: center;
    margin-top: 14px;
    font-size: 11px;
    color: #94a3b8;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    html,
    body.login-body-v2 {
        overflow: auto;
    }

    .login-split {
        flex-direction: column;
    }

    .login-left,
    .login-right {
        width: 100%;
        min-height: auto;
    }

    .login-left {
        padding: 36px 28px;
    }

    .login-card-v2 {
        padding: 36px 28px;
    }

    .login-features {
        display: none;
    }
}
.login-tenant-context {
    align-items: center;
    background: #f0f7f4;
    border: 1px solid #cfe4da;
    border-radius: 13px;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.login-tenant-context > span {
    align-items: center;
    background: #dceee6;
    border-radius: 10px;
    color: #006437;
    display: inline-flex;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.login-tenant-context div {
    display: grid;
    gap: 1px;
}

.login-tenant-context small,
.login-tenant-context em,
.login-field-help {
    color: #64748b;
    font-size: 11px;
    font-style: normal;
}

.login-tenant-context strong {
    color: #0f172a;
    font-size: 14px;
}

.login-context-required {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #dbe4ec;
    border-radius: 14px;
    display: flex;
    gap: 13px;
    padding: 18px;
}

.login-context-required > span {
    align-items: center;
    background: #e6f2ed;
    border-radius: 10px;
    color: #006437;
    display: inline-flex;
    flex: 0 0 42px;
    font-size: 21px;
    height: 42px;
    justify-content: center;
}

.login-context-required strong {
    color: #0f172a;
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.login-context-required p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
    margin: 0;
}

.login-field-help {
    display: block;
    margin-top: 6px;
}
