/* Kedwin Login Refresh */
:root {
    --login-bg-1: #0f172a;
    --login-bg-2: #1e293b;
    --login-accent: #f59e0b;
    --login-accent-2: #fb7185;
    --login-card: rgba(255, 255, 255, 0.92);
    --login-text: #1f2937;
    --login-muted: #64748b;
    --login-border: #d6dee8;
}

body.login-container {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh !important;
    background:
        radial-gradient(900px 450px at -10% -20%, rgba(245, 158, 11, 0.26), rgba(245, 158, 11, 0) 65%),
        radial-gradient(800px 420px at 120% -10%, rgba(251, 113, 133, 0.24), rgba(251, 113, 133, 0) 62%),
        linear-gradient(140deg, var(--login-bg-1) 0%, var(--login-bg-2) 100%) !important;
    background-attachment: fixed !important;
}

.page-container,
.page-content,
.content-wrapper,
.content {
    background: transparent !important;
    min-height: 100vh;
}

.content.pb-20 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 1040px;
    min-height: calc(100vh - 36px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    overflow: hidden;
    gap: 28px;
}

.login-intro {
    position: relative;
    z-index: 2;
    width: 46%;
    color: #e2e8f0;
    padding: 22px 12px 22px 26px;
    animation: cardRise 0.7s ease;
}

.login-intro .intro-tag {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.login-intro h2 {
    margin: 0 0 12px;
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 36px;
    line-height: 1.15;
    color: #f8fafc;
    text-wrap: balance;
}

.login-intro .intro-copy {
    margin: 0 0 18px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.5;
    max-width: 540px;
}

.intro-points {
    display: grid;
    gap: 10px;
}

.intro-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #f1f5f9;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(148, 163, 184, 0.24);
}

.intro-points i {
    color: #f59e0b;
}

.login-surface {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    background:
        linear-gradient(140deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.7)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.06) 1px, transparent 1px, transparent 16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 34px 80px rgba(2, 6, 23, 0.45);
    animation: cardRise 0.7s ease;
}

.login-surface::before,
.login-surface::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.login-surface::before {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.45), rgba(245, 158, 11, 0) 72%);
    top: -90px;
    left: -50px;
}

.login-surface::after {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.34), rgba(251, 113, 133, 0) 74%);
    bottom: -140px;
    right: 260px;
}

.login-container .panel.login-form {
    width: 100%;
    max-width: 500px;
    margin: 0;
    z-index: 2;
    border: 0;
    border-radius: 24px;
    background: var(--login-card);
    backdrop-filter: blur(9px);
    box-shadow: 0 16px 55px rgba(15, 23, 42, 0.35);
    padding: 22px 34px 18px;
}

.brand-block {
    margin-bottom: 12px;
}

.login-kicker {
    font-family: 'Sora', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    color: #0f766e;
    margin: 0 0 8px;
    font-weight: 700;
}

.login-logo {
    width: 114px;
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
    transition: transform 0.35s ease;
}

.login-logo:hover {
    transform: translateY(-2px) scale(1.02);
}

.login-container .content-group {
    margin: 0;
    font-family: 'Sora', 'Inter', sans-serif;
    color: var(--login-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.login-container .content-group small {
    color: var(--login-muted);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.35;
}

.login-container .form-group {
    margin-bottom: 10px;
}

.login-container .validation-error-label {
    display: block;
    margin-top: 6px;
    margin-bottom: 0;
    padding: 6px 8px;
    border-radius: 8px;
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.35);
    font-size: 12px;
    font-weight: 500;
}

.login-container .validation-error-label i {
    display: none;
}

.login-container .control-label {
    display: block;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.01em;
    margin-bottom: 5px;
}

.login-container .form-control {
    border-radius: 12px;
    border: 1px solid var(--login-border);
    background: #ffffff;
    color: #0f172a;
    padding: 10px 12px 10px 38px;
    font-size: 15px;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.login-container .form-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
    transform: translateY(-1px);
}

.login-container .form-control-feedback {
    left: 14px;
    right: auto;
    color: #94a3b8;
    font-size: 15px;
}

.login-options {
    margin-top: 2px;
    margin-bottom: 12px;
}

.login-container .checkbox label {
    color: #475569;
    font-size: 13px;
}

.login-container .btn-login {
    width: 100%;
    border-radius: 12px;
    border: 0;
    padding: 11px 16px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(110deg, var(--login-accent), var(--login-accent-2));
    box-shadow: 0 14px 30px rgba(251, 113, 133, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-container .btn-login:hover,
.login-container .btn-login:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(245, 158, 11, 0.28);
    filter: saturate(108%);
    color: #fff;
}

.login-container .btn-login:active {
    transform: translateY(0);
}

.login-container .btn-login .position-right {
    margin-left: 7px;
}

.help-row {
    font-size: 12px;
    margin-bottom: 3px;
}

.help-row a {
    font-weight: 700;
    color: #0f766e;
}

.help-row a:hover {
    color: #0c4a6e;
    text-decoration: none;
}

.login-meta {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.login-container .label-danger {
    margin-top: 6px;
    border-radius: 8px;
    padding: 6px 9px;
    font-size: 12px;
}

.login-container .panel.loading {
    opacity: 0.8;
    pointer-events: none;
}

.login-container .panel.loading::after {
    content: '';
    position: absolute;
    width: 34px;
    height: 34px;
    top: calc(50% - 17px);
    left: calc(50% - 17px);
    border: 3px solid rgba(15, 23, 42, 0.2);
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .login-wrapper {
        min-height: calc(100vh - 24px);
        max-width: 520px;
        justify-content: center;
        padding: 10px;
    }

    .login-intro {
        display: none;
    }

    .login-surface::after {
        right: -100px;
    }

    .login-container .panel.login-form {
        max-width: 100%;
    }
}

@media (max-width: 560px) {
    .content.pb-20 {
        padding: 12px;
    }

    .login-wrapper {
        padding: 6px;
    }

    .login-surface {
        border-radius: 22px;
    }

    .login-container .panel.login-form {
        border-radius: 18px;
        padding: 16px 14px 14px;
    }

    .login-logo {
        width: 108px;
    }

    .login-container .content-group {
        font-size: 18px;
    }
}
