:root {
    --rf-auth-primary: #1e88e5;
    --rf-auth-primary-dark: #1565c0;
    --rf-auth-primary-deep: #0d47a1;
    --rf-auth-bg: linear-gradient(135deg, #dff1ff 0%, #ecf7ff 45%, #f7fcff 100%);
    --rf-auth-brand-bg: linear-gradient(160deg, #1e88e5 0%, #1565c0 55%, #0d47a1 100%);
    --rf-auth-text: #12324f;
    --rf-auth-muted: #3d5a73;
    --rf-auth-border: #8bb8d9;
    --rf-auth-card-shadow: 0 28px 70px rgba(21, 101, 192, 0.18);
    --rf-auth-card-max-width: 1080px;
    --rf-auth-card-min-height: 640px;
}

.rf-auth-page {
    min-height: 100vh;
    margin: 0;
    font-family: "Manrope", "Inter", sans-serif;
    color: var(--rf-auth-text);
    background: var(--rf-auth-bg);
}

.rf-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.rf-auth-card {
    width: 100%;
    max-width: var(--rf-auth-card-max-width);
    min-height: var(--rf-auth-card-min-height);
    display: grid;
    grid-template-columns: 42% 58%;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--rf-auth-card-shadow);
    background: #fff;
}

.rf-auth-brand {
    background: var(--rf-auth-brand-bg);
    color: #fff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
}

.rf-auth-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.rf-auth-brand-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.rf-auth-brand-logo .rf-brand-logo {
    width: 100%;
    height: 100%;
}

.rf-auth-brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.rf-auth-brand-tagline {
    font-size: 0.85rem;
    opacity: 0.88;
}

.rf-auth-brand-title {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.rf-auth-brand-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    opacity: 0.92;
    margin-bottom: 2rem;
}

.rf-auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: auto;
}

.rf-auth-feature-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.92rem;
    font-weight: 500;
}

.rf-auth-feature-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rf-auth-brand-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    opacity: 0.75;
}

.rf-auth-main {
    padding: 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: relative;
}

.rf-auth-lang {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--rf-auth-border);
    border-radius: 0.65rem;
    background: #fff;
    color: var(--rf-auth-muted);
    font-size: 0.82rem;
}

.rf-auth-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rf-auth-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.rf-auth-title {
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--rf-auth-text);
}

.rf-auth-subtitle {
    color: var(--rf-auth-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.rf-auth-alert {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rf-auth-field {
    margin-bottom: 1.1rem;
}

.rf-auth-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
    color: var(--rf-auth-text);
}

.rf-auth-input,
.rf-auth-select {
    width: 100%;
    border: 1px solid var(--rf-auth-border);
    border-radius: 0.7rem;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: var(--rf-auth-text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rf-auth-input:focus,
.rf-auth-select:focus {
    outline: none;
    border-color: var(--rf-auth-primary);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}

.rf-auth-password-wrap {
    position: relative;
}

.rf-auth-password-wrap .rf-auth-input {
    padding-right: 3rem;
}

.rf-auth-toggle-password {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--rf-auth-muted);
    padding: 0;
    line-height: 1;
}

.rf-auth-toggle-password:hover {
    color: var(--rf-auth-primary);
}

.rf-auth-forgot {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.35rem;
    margin-bottom: 1.25rem;
}

.rf-auth-forgot-link {
    font-size: 0.88rem;
    color: var(--rf-auth-primary);
    text-decoration: none;
    font-weight: 600;
}

.rf-auth-forgot-link:hover {
    color: var(--rf-auth-primary-dark);
}

.rf-auth-submit {
    width: 100%;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--rf-auth-primary) 0%, var(--rf-auth-primary-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rf-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(30, 136, 229, 0.28);
    color: #fff;
}

.rf-auth-demo {
    margin-top: 1.35rem;
    padding: 1rem 1.1rem;
    border: 1px dashed var(--rf-auth-border);
    border-radius: 0.85rem;
    background: #f7fcff;
}

.rf-auth-demo-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.rf-auth-demo-list {
    margin: 0 0 0.85rem 0;
    padding-left: 1.1rem;
    color: var(--rf-auth-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.rf-auth-demo-btn {
    width: 100%;
    border: 1px solid var(--rf-auth-primary);
    border-radius: 0.7rem;
    padding: 0.65rem 1rem;
    background: #fff;
    color: var(--rf-auth-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.rf-auth-demo-btn:hover {
    background: var(--rf-auth-primary-soft);
    color: var(--rf-auth-primary-dark);
}

.rf-auth-demo-btn-link {
    cursor: pointer;
}

.rf-auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.rf-auth-form-grid .rf-auth-field {
    margin-bottom: 0;
}

.rf-auth-form-grid .rf-auth-field--full {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
}

.rf-auth-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.rf-auth-errorlist {
    list-style: none;
    margin: 0.35rem 0 0 0;
    padding: 0;
    color: var(--rf-danger);
    font-size: 0.84rem;
}

.rf-auth-form-text {
    margin: 0.35rem 0 0 0;
    color: var(--rf-auth-muted);
    font-size: 0.82rem;
}

.rf-auth-card--register {
    min-height: var(--rf-auth-card-min-height);
}

.rf-auth-main--register {
    justify-content: center;
    padding: 2.5rem 2.75rem;
}

.rf-auth-main--register .rf-auth-subtitle {
    margin-bottom: 1.25rem;
}

.rf-auth-main--scroll {
    justify-content: flex-start;
    padding-top: 4.5rem;
    overflow-y: auto;
}

.rf-auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--rf-auth-muted);
    font-size: 0.9rem;
}

.rf-auth-footer a {
    color: var(--rf-auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.rf-auth-footer a:hover {
    color: var(--rf-auth-primary-dark);
}

@media (max-width: 991.98px) {
    .rf-auth-card,
    .rf-auth-card--register {
        grid-template-columns: 1fr;
        min-height: auto;
        max-width: min(var(--rf-auth-card-max-width), 560px);
    }

    .rf-auth-brand {
        padding: 2rem 1.5rem;
    }

    .rf-auth-brand-title {
        font-size: 1.45rem;
    }

    .rf-auth-feature-list {
        margin-top: 1.5rem;
    }

    .rf-auth-main {
        padding: 2rem 1.5rem 2.25rem;
    }

    .rf-auth-lang {
        position: static;
        align-self: flex-end;
        margin-bottom: 1rem;
    }

    .rf-auth-main--register {
        padding: 2rem 1.5rem 2.25rem;
    }

    .rf-auth-form-grid,
    .rf-auth-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .rf-auth-shell {
        padding: 0.75rem;
    }

    .rf-auth-card {
        border-radius: 1rem;
    }

    .rf-auth-feature-item {
        border-radius: 0.85rem;
    }
}
