/* Sparkxe auth — login / register / basic details */
:root {
    --sx-ink: #0b1f1a;
    --sx-muted: #5f736c;
    --sx-line: #dce8e3;
    --sx-soft: #f3f8f6;
    --sx-card: #ffffff;
    --sx-green: #128c7e;
    --sx-green-deep: #075e54;
    --sx-green-bright: #25d366;
    --sx-green-soft: #e8f8ef;
    --sx-danger: #c0392b;
    --sx-radius: 12px;
    --sx-radius-pill: 999px;
    --sx-shadow: 0 18px 50px rgba(7, 94, 84, 0.12);
    --sx-font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --sx-display: "Outfit", "Segoe UI", sans-serif;
}

.auth-sx-page {
    --bs-primary: var(--sx-green);
    --bs-primary-rgb: 18, 140, 126;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 70% 50% at 10% 0%, rgba(37, 211, 102, 0.18), transparent 55%),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(7, 94, 84, 0.14), transparent 50%),
        linear-gradient(165deg, #f7fbf9 0%, #eef6f3 48%, #e7f2ee 100%);
    font-family: var(--sx-font);
    color: var(--sx-ink);
}

.auth-sx-page .auth-sx-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    width: 100%;
}

.auth-sx-page .auth-sx-col {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-sx-page.auth-sx-wide .auth-sx-col {
    max-width: min(720px, 96vw);
}

.auth-sx-page .auth-sx-card {
    background: var(--sx-card);
    border: 1px solid rgba(7, 94, 84, 0.08);
    border-radius: 18px;
    box-shadow: var(--sx-shadow);
    overflow: hidden;
}

.auth-sx-page .auth-sx-card-body {
    padding: 1.75rem 1.6rem 1.5rem;
}

.auth-sx-page.auth-sx-wide .auth-sx-card-body {
    padding: 1.6rem 1.75rem 1.4rem;
}

.auth-sx-page .auth-sx-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.35rem;
}

.auth-sx-page .auth-sx-brand img {
    width: 150px;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.auth-sx-page .auth-sx-brand h1 {
    font-family: var(--sx-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--sx-ink);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-sx-page .auth-sx-brand p {
    margin: 0;
    color: var(--sx-muted);
    font-size: 0.95rem;
}

.auth-sx-page .auth-sx-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid var(--sx-green-soft);
    background: var(--sx-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    overflow: hidden;
    position: relative;
    color: var(--sx-green);
    font-size: 2rem;
}

.auth-sx-page .auth-sx-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-sx-page .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sx-ink);
    margin-bottom: 0.35rem;
}

.auth-sx-page .auth-sx-field {
    position: relative;
}

.auth-sx-page .auth-sx-field .form-control,
.auth-sx-page .auth-sx-field .form-select,
.auth-sx-page .auth-sx-field textarea.form-control {
    border: 1px solid var(--sx-line);
    border-radius: var(--sx-radius);
    background: #fff;
    min-height: 46px;
    padding: 0.55rem 0.9rem 0.55rem 2.65rem;
    font-size: 0.95rem;
    color: var(--sx-ink);
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-sx-page .auth-sx-field textarea.form-control {
    min-height: 84px;
    padding-top: 0.7rem;
}

.auth-sx-page .auth-sx-field.no-icon .form-control,
.auth-sx-page .auth-sx-field.no-icon .form-select,
.auth-sx-page .auth-sx-field.no-icon textarea.form-control {
    padding-left: 0.9rem;
}

.auth-sx-page .auth-sx-field .form-control:focus,
.auth-sx-page .auth-sx-field .form-select:focus,
.auth-sx-page .auth-sx-field textarea.form-control:focus {
    border-color: var(--sx-green);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}

.auth-sx-page .auth-sx-field .auth-sx-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sx-green);
    font-size: 1.15rem;
    pointer-events: none;
    line-height: 1;
    z-index: 2;
}

.auth-sx-page .auth-sx-field.auth-sx-field-top .auth-sx-icon {
    top: 1.15rem;
    transform: none;
}

.auth-sx-page .auth-sx-field .auth-sx-eye {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sx-muted);
    border: 0;
    background: transparent;
    padding: 0.25rem;
    line-height: 1;
    z-index: 2;
}

.auth-sx-page .auth-sx-field.has-eye .form-control {
    padding-right: 2.6rem;
}

.auth-sx-page .auth-sx-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.auth-sx-page .auth-sx-meta a {
    color: var(--sx-green);
    text-decoration: none;
    font-weight: 600;
}

.auth-sx-page .auth-sx-meta a:hover {
    color: var(--sx-green-deep);
    text-decoration: underline;
}

.auth-sx-page .form-check-input:checked {
    background-color: var(--sx-green);
    border-color: var(--sx-green);
}

.auth-sx-page .form-check-label {
    color: var(--sx-muted);
    font-size: 0.875rem;
}

.auth-sx-page .btn-sx-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: var(--sx-radius);
    background: linear-gradient(135deg, var(--sx-green) 0%, var(--sx-green-deep) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(18, 140, 126, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-sx-page .btn-sx-primary:hover,
.auth-sx-page .btn-sx-primary:focus {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(18, 140, 126, 0.34);
}

.auth-sx-page .btn-sx-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 1.5px solid var(--sx-green);
    border-radius: var(--sx-radius);
    background: #fff;
    color: var(--sx-green);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-sx-page .btn-sx-outline:hover,
.auth-sx-page .btn-sx-outline:focus {
    background: var(--sx-green-soft);
    color: var(--sx-green-deep);
}

.auth-sx-page .auth-sx-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0 0.85rem;
    color: var(--sx-muted);
    font-size: 0.85rem;
}

.auth-sx-page .auth-sx-divider::before,
.auth-sx-page .auth-sx-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--sx-line);
}

.auth-sx-page .auth-sx-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-sx-page .auth-sx-links a {
    color: var(--sx-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

.auth-sx-page .auth-sx-links a:hover {
    color: var(--sx-green);
}

.auth-sx-page .auth-sx-alert {
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.auth-sx-page .auth-sx-alert-danger {
    background: #fdeeee;
    color: var(--sx-danger);
    border: 1px solid #f5c6c2;
}

.auth-sx-page .auth-sx-alert-success,
.auth-sx-page .auth-sx-alert-info {
    background: var(--sx-green-soft);
    color: var(--sx-green-deep);
    border: 1px solid #b7e8c9;
}

.auth-sx-page .auth-sx-usecases {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
}

.auth-sx-page .auth-sx-usecases .form-check {
    margin: 0;
}

.auth-sx-page .auth-sx-section-title {
    font-family: var(--sx-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sx-green-deep);
    margin: 0.35rem 0 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--sx-line);
}

.auth-sx-page .auth-sx-file .form-control {
    padding-left: 0.9rem;
}

.auth-sx-page .text-danger {
    font-size: 0.78rem;
}

@media (max-width: 575.98px) {
    .auth-sx-page .auth-sx-card-body {
        padding: 1.35rem 1.1rem 1.2rem;
    }

    .auth-sx-page .auth-sx-brand img {
        width: 132px;
    }

    .auth-sx-page .auth-sx-brand h1 {
        font-size: 1.35rem;
    }
}
