﻿
.rp-root {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #07111f 0%, #0d1e36 50%, #0a1828 100%);
    padding: 20px;
}

.rp-root::before {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.rp-glass-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.rp-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.rp-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.rp-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.rp-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

.rp-form { display: grid; gap: 20px; }

.rp-field { display: grid; gap: 8px; }

.rp-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.rp-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.2s ease;
}

.rp-input-wrap:focus-within {
    background: rgba(255, 255, 255, 0.08);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.rp-input-wrap.err {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.rp-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

.rp-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    padding: 16px 0;
}

.rp-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.rp-eye {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.rp-eye:hover { color: rgba(255, 255, 255, 0.8); }

.rp-err-msg {
    color: #f87171;
    font-size: 0.85rem;
}

.rp-api-err {
    text-align: center;
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: 10px;
    padding: 10px 14px;
}

.rp-submit {
    width: 100%;
    background: linear-gradient(135deg, #3d56a3 0%, #1a2558 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    margin-top: 4px;
}

.rp-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.rp-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.rp-arrow {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.rp-submit:hover .rp-arrow { transform: translateX(2px); }

.rp-back { text-align: center; margin-top: 24px; }

.rp-back-link {
    background: none;
    border: none;
    color: #60a5fa;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.rp-back-link:hover { color: #93c5fd; }

.rp-back-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 24px;
}

.rp-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .rp-root { padding: 16px; }
    .rp-glass-card { padding: 32px 24px; }
    .rp-heading { font-size: 1.75rem; }
}
