*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --rl-navy-dark: #07152B;
    --rl-navy-card: #0B1B36;
    --rl-navy-card-border: rgba(0, 180, 216, 0.25);
    --rl-cyan: #00B4D8;
    --rl-cyan-glow: rgba(0, 180, 216, 0.35);
    --rl-emerald: #10B981;
    --rl-emerald-glow: rgba(16, 185, 129, 0.35);
    --rl-gradient: linear-gradient(135deg, #00B4D8 0%, #10B981 100%);
    --rl-gradient-hover: linear-gradient(135deg, #0096C7 0%, #059669 100%);
    --rl-text-main: #FFFFFF;
    --rl-text-muted: #94A3B8;
    --rl-accent: #00B4D8;
}

body.rl-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 15% 15%, rgba(0, 180, 216, 0.18) 0%, transparent 40%),
                radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.16) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(11, 27, 54, 0.8) 0%, transparent 100%),
                #07152B;
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #F8FAFC;
    -webkit-font-smoothing: antialiased;
}

.rl-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: transparent;
}

.rl-wrap {
    width: 100%;
    max-width: 420px;
}

.rl-card {
    background: rgba(11, 27, 54, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 180, 216, 0.24);
    border-radius: 20px;
    padding: 40px 36px 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
                0 0 35px rgba(0, 180, 216, 0.12);
    position: relative;
    overflow: hidden;
}

.rl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rl-gradient);
}

.rl-logo {
    text-align: center;
    margin-bottom: 26px;
    width: 100%;
}

.rl-logo img {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    max-height: 48px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.rl-title {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 6px;
    letter-spacing: -0.4px;
}

.rl-subtitle {
    font-size: 14px;
    color: #94A3B8;
    text-align: center;
    margin: 0 0 26px;
    line-height: 1.5;
}

.rl-field {
    margin-bottom: 18px;
}

.rl-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #CBD5E1;
    margin-bottom: 7px;
}

.rl-input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #FFFFFF;
    background: rgba(7, 21, 43, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.rl-input::placeholder {
    color: #64748B;
}

.rl-input:focus {
    border-color: #00B4D8;
    background: rgba(7, 21, 43, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25), 0 0 15px rgba(0, 180, 216, 0.15);
}

.rl-role {
    margin-bottom: 22px;
}

.rl-role-label {
    font-size: 13px;
    font-weight: 500;
    color: #CBD5E1;
    margin-bottom: 8px;
    display: block;
}

.rl-role-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(7, 21, 43, 0.6);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.rl-role-item {
    position: relative;
}

.rl-role-tabs input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rl-role-tabs label {
    display: block;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #94A3B8;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
    transition: all 0.2s ease;
}

.rl-role-tabs input[type="radio"]:checked + label {
    color: #FFFFFF;
    background: var(--rl-gradient);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.35);
}

.rl-btn {
    display: block;
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.rl-btn-primary {
    background: var(--rl-gradient);
    color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(0, 180, 216, 0.35);
}

.rl-btn-primary:hover {
    background: var(--rl-gradient-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 180, 216, 0.45), 0 0 15px rgba(16, 185, 129, 0.35);
}

.rl-btn-primary:active {
    transform: translateY(0);
}

.rl-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 12px;
}

.rl-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border-color: rgba(0, 180, 216, 0.4);
}

.rl-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    font-size: 12px;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rl-divider::before,
.rl-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.2);
}

.rl-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #94A3B8;
    line-height: 1.9;
}

.rl-footer a {
    color: #00B4D8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rl-footer a:hover {
    color: #10B981;
    text-decoration: underline;
}

.rl-footer-dot {
    margin: 0 6px;
    color: #475569;
}

.rl-error {
    color: #F87171;
    font-size: 13px;
    margin-top: 6px;
}

.rl-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    color: #FCA5A5;
    font-size: 13px;
    margin-bottom: 14px;
}

#googleBtn {
    display: flex;
    justify-content: center;
}

#googleBtn > div,
#googleBtn iframe {
    width: 100% !important;
}

.rl-page .select2-container {
    width: 100% !important;
    margin-bottom: 12px;
}

.rl-page .select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 10px;
    background: rgba(7, 21, 43, 0.8);
}

.rl-page .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 14px;
    font-size: 14px;
    color: #FFFFFF;
}

.rl-page .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
}

.select2-dropdown {
    background-color: #0B1B36 !important;
    border: 1px solid rgba(0, 180, 216, 0.3) !important;
    color: #FFFFFF !important;
}

.select2-container--default .select2-results__option {
    color: #E2E8F0 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #00B4D8 !important;
    color: #FFFFFF !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #07152B !important;
    border: 1px solid rgba(0, 180, 216, 0.3) !important;
    color: #FFFFFF !important;
}

@media (max-width: 440px) {
    .rl-card {
        padding: 32px 22px 28px;
    }
}
