@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body.ctfx-auth-body {
    margin: 0;
    min-height: 100%;
    background: #100826;
    background-image:
        radial-gradient(900px 520px at -10% -10%, rgba(142, 72, 214, 0.45), transparent 58%),
        radial-gradient(720px 480px at 110% 0%, rgba(58, 22, 116, 0.55), transparent 50%),
        radial-gradient(680px 420px at 80% 120%, rgba(110, 50, 176, 0.35), transparent 55%),
        linear-gradient(165deg, #1a0d3a 0%, #12082a 42%, #24104a 100%);
    font-family: "Plus Jakarta Sans", Roboto, sans-serif;
    color: #16141f;
}

.ctfx-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 48px;
    box-sizing: border-box;
    position: relative;
}

.ctfx-auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 24px;
    border-top: 4px solid #6e32b0;
    padding: 32px 32px 26px;
    box-shadow: 0 28px 70px rgba(8, 4, 24, 0.38);
    position: relative;
    z-index: 1;
}

.ctfx-auth-card-wide {
    max-width: 880px;
}

.ctfx-auth-logo {
    text-align: center;
    margin-bottom: 8px;
}

.ctfx-auth-logo img {
    width: 210px;
    max-width: 78%;
    height: auto;
}

.ctfx-auth h1 {
    margin: 6px 0 6px;
    text-align: center;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #16141f;
}

.ctfx-auth-lead {
    margin: 0 0 22px;
    text-align: center;
    color: #6d675f;
    font-size: 14.5px;
    line-height: 1.5;
}

.ctfx-auth .form-group {
    margin-bottom: 14px;
}

.ctfx-auth label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5c5670;
}

.ctfx-auth .form-control {
    height: 48px;
    border: 1px solid #e6e1f0;
    border-radius: 12px;
    background: #faf8fc;
    color: #16141f;
    font-size: 15px;
    padding: 10px 14px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ctfx-auth textarea.form-control {
    height: auto;
}

.ctfx-auth select.form-control {
    padding-right: 32px;
}

.ctfx-auth .form-control:focus {
    border-color: #6e32b0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(110, 50, 176, 0.12);
    outline: none;
}

.ctfx-auth .form-control::placeholder {
    color: #b0a8bc;
}

.ctfx-auth .has-eye {
    position: relative;
}

.ctfx-auth .has-eye .form-control {
    padding-right: 44px;
}

.ctfx-auth .has-eye .toggle-password,
.ctfx-auth .has-eye .toggle-password2 {
    position: absolute;
    right: 14px;
    top: 40px;
    color: #8a837a;
    cursor: pointer;
    z-index: 2;
    font: normal normal normal 16px/1 FontAwesome !important;
}

.ctfx-auth .row > .has-eye .toggle-password,
.ctfx-auth .row > .has-eye .toggle-password2 {
    right: 32px;
    margin-right: 0;
}

.ctfx-auth .has-eye .toggle-password:hover,
.ctfx-auth .has-eye .toggle-password2:hover {
    color: #5c2496;
}

.ctfx-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 16px;
    flex-wrap: wrap;
}

.ctfx-auth-meta label,
.ctfx-auth .checkbox label {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 500;
    color: #3a342c;
}

.ctfx-auth-meta a,
.ctfx-auth-switch a,
.ctfx-auth .checkbox a {
    color: #5c2496;
    font-weight: 700;
    text-decoration: none;
}

.ctfx-auth-meta a:hover,
.ctfx-auth-switch a:hover {
    color: #3a1674;
}

.ctfx-auth input[type="checkbox"] {
    accent-color: #5c2496;
    margin-right: 6px;
    vertical-align: -1px;
}

.ctfx-auth-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #3a1674, #6e32b0);
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 14px 18px;
    margin-top: 6px;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(58, 22, 116, 0.28);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ctfx-auth-btn:hover,
.ctfx-auth-btn:focus {
    background: linear-gradient(90deg, #4b1d92, #7c3ec2);
    color: #fff !important;
    outline: none;
    box-shadow: 0 14px 28px rgba(58, 22, 116, 0.34);
}

.ctfx-auth-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.ctfx-auth-switch {
    margin: 18px 0 0;
    text-align: center;
    color: #6d675f;
    font-size: 14px;
}

.ctfx-auth .alert {
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    padding: 12px 14px;
}

.ctfx-auth .alert-success {
    background: #e7f6ec;
    color: #18794e;
}

.ctfx-auth .alert-danger {
    background: #fdecec;
    color: #b42318;
}

.ctfx-auth small.text-danger,
.ctfx-auth .text-danger {
    font-size: 12px;
    font-weight: 600;
}

.ctfx-auth small.text-danger:empty {
    display: none;
}

.ctfx-auth-note {
    margin-top: 10px;
    color: #6d675f;
    font-size: 13px;
    line-height: 1.5;
}

.ctfx-auth-note a {
    color: #5c2496;
    font-weight: 700;
    text-decoration: none;
}

.ctfx-auth-success-icon {
    width: 64px;
    height: 64px;
    margin: 8px auto 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7f6ec;
    color: #18794e;
    font-size: 28px;
}

@media (max-width: 767px) {
    .ctfx-auth {
        padding: 20px 12px 28px;
        align-items: flex-start;
    }

    .ctfx-auth-card,
    .ctfx-auth-card-wide {
        padding: 26px 18px 20px;
        border-radius: 18px;
    }

    .ctfx-auth h1 {
        font-size: 22px;
    }

    .ctfx-auth-logo img {
        width: 180px;
    }
}
