/* ═══════════════════════════════════════════════════════
   Login / Auth Pages — standalone gradient layout
   Ported from Akrual Backend loginStyle.css
   Prefixed .login-* to avoid collisions with Inspinia
   ═══════════════════════════════════════════════════════ */

html, body {
    height: 100%;
}

/* Full-page gradient background (matches backend .page-wrap.gradient-primary) */
.login-page-wrap {
    min-height: 100%;
    margin-bottom: -100px;
    background-image: linear-gradient(to bottom, #2F4050, #26375A);
    background-color: #26375A;
}

.login-page-wrap::after {
    content: "";
    display: block;
    height: 100px;
}

/* Centered container (matches backend .container) */
.login-container {
    position: relative;
    height: 100%;
    text-align: center;
    padding-top: 60px;
}

.login-container .login-content,
.login-container .login-content > a {
    margin-bottom: 90px;
    color: rgba(255, 255, 255, 0.8);
}

/* Logo — large brand text (matches backend h1.logo) */
.login-logo {
    text-align: center;
    margin: 0 0 0;
    color: #e6e6e6;
    font-size: 110px;
    font-weight: 800;
    letter-spacing: -10px;
}

/* Subtitle (matches backend h2.logo-description) */
.login-description {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    color: #f3f3f4;
    margin: 0 0 40px;
}

/* White card panel (matches backend .panel) */
.login-panel {
    max-width: 500px;
    margin: 0 auto 20px;
    border-radius: 8px;
    background: #fff;
    color: #3f3f44;
}

.login-panel form {
    padding: 40px;
}

@media (max-width: 600px) {
    .login-panel form {
        padding: 40px 20px;
    }
}

.login-panel h3 {
    margin: 40px 0 0;
    text-align: center;
}

.login-panel h4 {
    color: #333;
    font-weight: bold;
}

/* Non-form panel content (used on confirmation/lockout pages with no <form>) */
.login-panel .login-panel-body {
    padding: 20px 40px 40px;
    text-align: left;
}

/* Form elements */
.login-panel .form-group {
    position: relative;
    margin-bottom: 20px;
}

/* Labels hidden by default — using placeholders (matches backend) */
.login-panel .form-group label {
    text-align: left;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

/* Visible labels for specific contexts (checkbox, 2FA toggle) */
.login-panel .checkbox label,
.login-panel .login-label-visible {
    position: relative;
    overflow: visible;
    clip: auto;
    height: auto;
    width: auto;
    margin: 0;
    font-weight: 400;
    color: #676a6c;
    font-size: 13px;
}

.login-panel .form-control {
    height: 44px;
    padding-left: 50px;
    border-radius: 4px;
    border: 1px solid #e5e6e7;
    font-size: 14px;
    transition: border-color 0.15s ease;
}

@media (max-width: 600px) {
    .login-panel .form-control {
        font-size: 16px;
    }
}

.login-panel .form-control:focus {
    border-color: #1ab394;
    box-shadow: 0 0 0 2px rgba(26, 179, 148, 0.15);
}

/* Input icon (matches backend .input-icon with FA instead of PNG) */
.login-input-icon {
    position: relative;
}

.login-input-icon .fa {
    position: absolute;
    top: 50%;
    margin-top: -9px;
    left: 12px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

/* Vertical gradient divider line after icon (matches backend .input-icon::after) */
.login-input-icon .fa::after {
    content: '';
    position: absolute;
    right: -11px;
    top: -10px;
    bottom: -10px;
    width: 1px;
    opacity: 0.5;
    background-color: rgba(212, 212, 212, 0);
    background-image: linear-gradient(to top, rgba(212, 212, 212, 0) 0, #d4d4d4 30%, #d4d4d4 70%, rgba(212, 212, 212, 0) 100%);
}

/* Primary submit button */
.login-panel .btn-login {
    height: 44px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    background: #1ab394;
    border-color: #1ab394;
    color: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.login-panel .btn-login:hover,
.login-panel .btn-login:focus {
    background: #18a689;
    border-color: #18a689;
    color: #fff;
}

/* Microsoft SSO button (matches backend .btn-microsoft) */
.login-panel .btn-microsoft {
    height: 44px;
    background-color: #2F2F2F;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.02s ease, background-color 0.2s ease;
    width: 100%;
}

.login-panel .btn-microsoft:hover {
    background-color: #000;
    color: #fff;
}

.login-panel .btn-microsoft:active {
    transform: translateY(1px);
}

.login-panel .btn-microsoft .fa {
    color: #fff;
    font-size: 16px;
}

/* Separator between local login and SSO */
.login-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.login-separator::before {
    content: "";
    position: absolute;
    left: 40px;
    right: 40px;
    top: 50%;
    height: 1px;
    background: rgba(203, 203, 210, 0.6);
}

.login-separator span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    color: #878797;
    font-size: 13px;
}

/* Links area below panel */
.login-links {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}

.login-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.login-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Validation errors (matches backend .validation-summary-errors) */
.login-panel .validation-summary-errors {
    text-align: left;
    color: #ed5565;
    font-size: 13px;
    margin-bottom: 12px;
}

.login-panel .validation-summary-errors ul {
    margin: 0;
    padding: 10px 20px 20px;
    color: #878797;
}

.login-panel .text-danger {
    font-size: 12px;
}

/* Alert boxes inside panel */
.login-panel .alert {
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 18px;
}

/* Footer (matches backend footer.logo-sfdc) */
.login-footer {
    display: block;
    margin: auto;
    width: 100%;
    max-width: 430px;
    height: 100px;
    padding: 26.667px 0;
    text-align: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

.login-footer a {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
}

.login-footer a:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* 2FA method toggle */
.login-panel .login-mfa-toggle {
    margin-bottom: 15px;
}

.login-panel .login-mfa-toggle .btn {
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        padding-top: 30px;
    }

    .login-logo {
        font-size: 60px;
        letter-spacing: -5px;
    }

    .login-description {
        font-size: 18px;
    }
}
