:root {
    --blue-100: #e8f1ff;
    --blue-200: #c7dbff;
    --blue-400: #2f6dfc;
    --blue-500: #2153d6;
    --blue-600: #163fae;
    --gray-50: #f7f9fc;
    --gray-200: #dbe0ea;
    --gray-400: #9aa5b8;
    --gray-700: #334155;
    --shadow-strong: 0 20px 70px rgba(31, 65, 114, 0.2);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 20% 20%, rgba(79, 129, 255, 0.08), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.12), transparent 30%),
                linear-gradient(135deg, #f1f5ff 0%, #f3f7fb 50%, #ecf2ff 100%);
    color: #0b1b35;
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.login-card {
    width: min(1100px, 100%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 25px 70px rgba(31, 65, 114, 0.22),
        0 18px 40px rgba(31, 65, 114, 0.14),
        0 8px 18px rgba(31, 65, 114, 0.08);
}

.login-card__panel {
    position: relative;
    padding: 48px 44px;
}

.login-card__panel--brand {
    background: linear-gradient(279deg, #7b3cff 0%, #5f2ec2 100%); //linear-gradient(180deg, #2f6dfc 0%, #1b55db 50%, #0f3fba 100%);
    color: #ffffff;
    isolation: isolate;
}

.login-card__panel--brand::before,
.login-card__panel--brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: -1;
}

.login-card__panel--brand::before {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 35%),
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.16), transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.2), transparent 32%);
}

.login-card__panel--brand::after {
    background-image:
        radial-gradient(60% 50% at 50% 40%, rgba(255, 255, 255, 0.06), transparent),
        radial-gradient(50% 60% at 70% 70%, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0.7;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    backdrop-filter: blur(2px);
}

.brand-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.brand-name strong {
    font-size: 1.1rem;
}

.welcome-meta {
    max-width: 440px;
}

.welcome-tag {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    /*opacity: 0.85;*/
    color: #ffc107;
}

.welcome-title {
    font-size: 2.6rem;
    margin: 6px 0 14px;
    letter-spacing: 1px;
}

.welcome-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
}

.login-card__panel--form {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar__brand-text {
    margin-bottom: 12px;
}

.sidebar__brand-text h2 {
    margin: 0;
}

.sidebar__brand-text small {
    color: var(--gray-400);
}

.login-title {
    font-size: 25px;
    font-weight: 700;
    color: var(--gray-700);
}

.login-subtitle {
    color: var(--gray-400);
    margin-bottom: 28px;
}

.login-form {
    width: 100%;
    display: grid;
    gap: 16px;
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 14px 14px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: #f9fbff;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-400);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 131, 250, 0.2);
}

/*.input-group {*/
/*    position: relative;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 8px;*/
/*    width: 100%;*/
/*}*/

/*.input-group .form-control {*/
/*    margin-bottom: 0;*/
/*}*/

.btn-show-password {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: #ffffff;
    color: var(--gray-700);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-show-password:hover,
.btn-show-password:focus {
    border-color: var(--blue-400);
    color: var(--blue-500);
    outline: none;
}

.session-begin {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    /*background: linear-gradient(135deg, #2f6dfc, #2153d6);*/
    background: linear-gradient(279deg, #7b3cff 0%, #5f2ec2 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(47, 109, 252, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
}

.session-begin:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 40px rgba(47, 109, 252, 0.4);
    filter: brightness(1.02);
}

.session-begin:active {
    transform: translateY(0);
}

.form-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--gray-400);
    font-size: 0.95rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--blue-400);
    cursor: pointer;
}

.form-check-label {
    color: var(--gray-700);
    font-weight: 500;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--blue-400);
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover,
.auth-links a:focus {
    text-decoration: underline;
}

.auth-links__divider {
    color: var(--gray-400);
}

.server-hint {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.erro-email {
    color: darkred;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.footer {
    height: 20px;
}

@media (max-width: 860px) {
    .login-card__panel {
        padding: 36px 28px;
    }

    .welcome-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 640px) {
    .login-card {
        border-radius: 14px;
    }

    .login-card__panel--brand {
        text-align: center;
    }

    .brand-header {
        justify-content: center;
    }

    .welcome-meta {
        margin: 0 auto;
    }

    .login-title {
        text-align: center;
    }

    .login-subtitle {
        text-align: center;
    }
}

.spinner-border{
    margin-right: 10px!important;
}

#order-loading-c{
    position: fixed; inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(to bottom, rgb(14 2 2 / 64%) 50%, #ffff 100%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

#order-loading-c.is-active{ opacity: 1; visibility: visible; }

.svg-spinner{
    width: 64px; height: 64px;
}

.svg-spinner .path{
    stroke: rgb(249, 249, 249);
    stroke-linecap: round;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
    animation: dash 1.4s ease-in-out infinite, rotate 1.4s linear infinite;
    transform-origin: center;
}

@keyframes rotate { to { transform: rotate(360deg); } }

@keyframes dash {
    0%   { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50%  { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

.loading-card{ display: grid; gap: .75rem; justify-items: center; }

.loading-text{
    color: rgba(14, 2, 2, 0.95);
    font: 600 1.125rem/1.2 system-ui;
    font-size: 28px;
    margin: 0;
}

#btn-show-password i { pointer-events: none; }
