/* =========================================================
   FEZEKA SSO — Auth
   Split-panel layout and forms for Login / Register /
   Reset / Credentials pages. Loaded via _LayoutAuth.
   ========================================================= */

/* =========================================================
   AUTHENTICATION — SPLIT PANEL
   ========================================================= */

.auth-page-body {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #f0f4ff;
}

.auth-page-body .login-left {
    width: 45%;
    background: #ffffff;
    padding: 48px 56px;
    position: relative;
    z-index: 1;
    display: grid;
    justify-content: center;
    align-items: center;
}

.auth-page-body .login-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: -24px;
    bottom: 0;
    width: 48px;
    background: #ffffff;
    border-radius: 0 32px 32px 0;
    z-index: 2;
}

.auth-page-body .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    align-self: flex-start;
}

.auth-page-body .brand-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
}

.auth-page-body .brand-logo span {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.auth-page-body .brand-logo small {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
    display: block;
}

/* right-branding panel */
.auth-page-body .login-right {
    flex: 1;
    background: linear-gradient(135deg, #2b0d22 0%, #571f42 55%, #94356f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.auth-page-body .login-right::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(184, 90, 143, .25);
    border-radius: 50%;
    top: -100px;
    right: -80px;
}

.auth-page-body .login-right::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(125, 45, 95, .35);
    border-radius: 50%;
    bottom: -80px;
    left: 20px;
}

.auth-page-body .right-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
}

.auth-page-body .right-content h2 {
    font-size: 30px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.3;
}

.auth-page-body .right-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.auth-page-body .feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.auth-page-body .feature-pill {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-page-body .feature-pill .pill-dot {
    width: 8px;
    height: 8px;
    background: #d99ec3;
    border-radius: 50%;
    flex-shrink: 0;
}

.auth-page-body .iso-card {
    width: 320px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 20px;
    padding: 24px;
    margin: 0 auto 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.auth-page-body .iso-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-page-body .iso-card-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.auth-page-body .iso-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.auth-page-body .iso-card-meta {
    flex: 1;
}

.auth-page-body .iso-card-meta strong {
    font-size: 14px;
    color: var(--white);
    display: block;
}

.auth-page-body .iso-card-meta span {
    font-size: 12px;
    color: rgba(255, 255, 255, .75);
}

.auth-page-body .iso-badge {
    background: rgba(255, 255, 255, .2);
    color: #ffe9f5;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.auth-page-body .iso-stat-row {
    display: flex;
    gap: 10px;
}

.auth-page-body .iso-stat {
    flex: 1;
    background: rgba(255, 255, 255, .14);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.auth-page-body .iso-stat strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
}

.auth-page-body .iso-stat span {
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
}

/* =========================================================
   AUTH FORMS
   ========================================================= */

.auth-page-body .login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    align-self: flex-start;
    line-height: 1.3;
}

.auth-page-body .login-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 32px;
    align-self: flex-start;
}

.auth-page-body .form-wrapper {
    width: 100%;
    max-width: 360px;
}

.auth-page-body .input-group-login {
    margin-bottom: 20px;
}

    .auth-page-body .input-group-login label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: .5px;
    }

.auth-page-body .input-icon-wrap {
    position: relative;
}

.auth-page-body .input-icon-wrap .field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 15px;
    pointer-events: none;
}

.auth-page-body .input-icon-wrap input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid #dde3f0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: #f7f9ff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.auth-page-body .input-icon-wrap.has-password-toggle input {
    padding-right: 48px;
}

.auth-page-body .password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: var(--text-light);
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

.auth-page-body .password-toggle:hover,
.auth-page-body .password-toggle:focus-visible {
    color: var(--primary);
    background: rgba(148, 53, 111, .1);
    outline: none;
}

.auth-page-body .input-icon-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(148, 53, 111, .15);
    background: #fff;
}

.auth-page-body .input-icon-wrap select {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1.5px solid #dde3f0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: #f7f9ff;
    outline: none;
    cursor: pointer;
}

.auth-page-body .input-icon-wrap select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(148, 53, 111, .15);
    background: #fff;
}

.auth-page-body .input-icon-wrap input.input-error {
    border-color: #e74c3c;
}

.auth-page-body .field-error {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 4px;
    display: block;
}

.auth-page-body .remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 15px;
}

.auth-page-body .remember-row .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.auth-page-body .remember-row .form-check input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.auth-page-body .remember-row .form-check label {
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    margin: 0;
}

.btn-login {
    display: block;
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    letter-spacing: .3px;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
}

.btn-login:hover {
    opacity: .92;
    transform: translateY(-1px);
    color: #fff;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-login--outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-login--outline:hover {
    background: rgba(148, 53, 111, .06);
    color: var(--primary);
    box-shadow: none;
}

.auth-mt {
    margin-top: 24px;
}

.auth-btn-row {
    display: flex;
    gap: 10px;
}

    .auth-btn-row .btn-login {
        flex: 1;
    }

.auth-btn-row--bottom {
    margin-bottom: 20px;
}

.alert-login {
    background: #fff0f0;
    border: 1px solid #fcc;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #c0392b;
    margin-bottom: 18px;
}

    .alert-login strong {
        margin-right: 2px;
    }

.alert-login--success {
    background: #f0fef1;
    border-color: #d4f1d4;
    color: #27ae60;
}

.alert-login--warning {
    background: #fff9e6;
    border-color: #ffe6b3;
    color: #d68910;
}

.field-note {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 12px;
}

.auth-note {
    color: var(--text-light);
    font-size: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dde3f0;
}

    .auth-footer p {
        color: var(--text-light);
        font-size: 13px;
        margin: 0;
    }

.auth-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

    .auth-link:hover {
        color: var(--primary-dark);
    }

.auth-security-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 11px;
}

.notice-warning {
    background: #fff9e6;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #d68910;
}

    .notice-warning .notice-title {
        margin: 0 0 0.75rem;
        font-weight: 600;
        color: var(--text);
    }

    .notice-warning p {
        margin: 0;
        color: var(--text);
        font-size: 13px;
    }

.endpoints-box {
    background: #f0f4ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

    .endpoints-box .endpoints-title {
        font-weight: 600;
        color: var(--text);
        margin: 0 0 1rem;
    }

    .endpoints-box code {
        background: #fff;
        padding: 0.25rem 0.5rem;
        border-radius: 3px;
    }

.endpoint-row {
    margin: 0.5rem 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
}

.credentials-field {
    margin-bottom: 1.5rem;
}

    .credentials-field label {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

.credentials-display {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.credential-value {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid #dde3f0;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: #f7f9ff;
    font-family: var(--font-mono);
    font-weight: 600;
}

    .credential-value:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(148, 53, 111, .15);
    }

.copy-btn {
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    font-family: inherit;
}

    .copy-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

    .copy-btn:disabled {
        opacity: .6;
        cursor: default;
        transform: none;
    }

/* =========================================================
   RESPONSIVE — AUTH
   ========================================================= */

@media (max-width: 768px) {
    .auth-page-body {
        flex-direction: column;
    }

    .auth-page-body .login-left {
        width: 100%;
        padding: 36px 24px;
    }

    .auth-page-body .login-left::after {
        display: none;
    }

    .auth-page-body .login-right {
        display: none;
    }

    .auth-container {
        padding: 1rem;
    }

    .auth-box {
        max-width: 100%;
        padding: 2rem;
    }

    .auth-btn-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 1.5rem;
        border-radius: var(--radius);
    }

    .auth-header h1 {
        font-size: 1.4rem;
    }
}
