/* register.css - Dark Glassmorphism Theme (index.css stílusához igazítva) */

:root {
    --bg-primary: #0a0c10;
    --bg-glass: rgba(18, 22, 32, 0.65);
    --bg-glass-strong: rgba(12, 15, 25, 0.88);
    --accent-blue: #2d7aff;
    --accent-blue-glow: rgba(45, 122, 255, 0.4);
    --accent-cyan: #00d4ff;
    --gradient-hero: linear-gradient(135deg, #0a0c10 0%, #0f1625 50%, #0a0c10 100%);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 30px rgba(45, 122, 255, 0.3);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Háttér === */
.bg-gradient-primary {
    background: var(--gradient-hero) !important;
    min-height: 100vh;
    position: relative;
}

.bg-gradient-primary::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 15%, rgba(45, 122, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 85%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container-fluid {
    position: relative;
    z-index: 1;
}

/* === Fejléc szövegek === */
.text-white {
    color: #ffffff !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* === Kártya - glassmorphism === */
.card {
    background: rgba(14, 18, 30, 0.88) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 122, 255, 0.2) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(45, 122, 255, 0.04) !important;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transition: box-shadow var(--transition-base);
    overflow: hidden;
    color: #ffffff;
}

.card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(45, 122, 255, 0.3) !important;
}

/* Bootstrap .row és .col átlátszó legyen a kártyán belül */
.card .row,
.card .col-12 {
    background: transparent !important;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === Szekció blokkok === */
.form-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(45, 122, 255, 0.12);
    border-left: 3px solid var(--accent-blue);
    transition: all var(--transition-base);
}

.form-section:hover {
    background: rgba(45, 122, 255, 0.05);
    border-color: rgba(45, 122, 255, 0.25);
    border-left-color: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(45, 122, 255, 0.08);
}

.form-section h5 {
    color: var(--accent-blue) !important;
    font-weight: 600;
}

/* === Form label === */
.form-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* === Input group === */
.input-group {
    border-radius: 10px;
    overflow: hidden;
}

.input-group-text {
    background: rgba(45, 122, 255, 0.12);
    color: var(--accent-blue);
    border: 1px solid rgba(45, 122, 255, 0.2);
    border-right: none;
    min-width: 45px;
    justify-content: center;
    font-size: 1.05rem;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.input-group:focus-within .input-group-text {
    background: rgba(45, 122, 255, 0.22);
    border-color: rgba(45, 122, 255, 0.45);
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    border-radius: 0 10px 10px 0 !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-control:focus,
.form-select:focus {
    background: rgba(45, 122, 255, 0.08) !important;
    border-color: rgba(45, 122, 255, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(45, 122, 255, 0.15) !important;
    color: #ffffff !important;
}

.form-select option {
    background: #11141c;
    color: #ffffff;
}

/* === Form helper szöveg === */
.form-text,
.text-muted {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 0.82rem;
}

/* === Elsődleges gomb === */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #1a5cce) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition-base) !important;
    box-shadow: 0 4px 15px rgba(45, 122, 255, 0.35) !important;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45, 122, 255, 0.55) !important;
    filter: brightness(1.1);
}

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

.btn-primary:disabled {
    opacity: 0.65;
}

/* === Outline gombok === */
.btn-outline-primary {
    border: 1px solid rgba(45, 122, 255, 0.5) !important;
    color: var(--accent-blue) !important;
    border-radius: 40px !important;
    font-weight: 500;
    background: transparent !important;
    transition: all var(--transition-base) !important;
}

.btn-outline-primary:hover {
    background: var(--accent-blue) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(45, 122, 255, 0.4) !important;
    border-color: transparent !important;
}

.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: none !important;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all var(--transition-base) !important;
}

.btn-outline-secondary:hover {
    background: rgba(45, 122, 255, 0.12) !important;
    color: var(--accent-blue) !important;
}

/* === Jelszó erősség mérő === */
.password-strength-meter {
    height: 4px;
    border-radius: 2px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.password-strength-meter.weak {
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    width: 25%;
}

.password-strength-meter.fair {
    background: linear-gradient(90deg, #ff9f43, #feca57);
    width: 50%;
}

.password-strength-meter.good {
    background: linear-gradient(90deg, #feca57, #1dd1a1);
    width: 75%;
}

.password-strength-meter.strong {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    width: 100%;
}

/* === Jelszó követelmények === */
.requirement-unmet {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
    transition: all 0.2s;
}

.requirement-met {
    color: #1dd1a1;
    font-size: 0.82rem;
    transition: all 0.2s;
}

/* === Info doboz (email figyelmeztetés) === */
.bg-light {
    background: rgba(45, 122, 255, 0.07) !important;
    border: 1px solid rgba(45, 122, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* === Heading / Primary szín === */
.text-primary {
    color: var(--accent-blue) !important;
}

/* === Badge === */
.badge.bg-primary {
    background: rgba(45, 122, 255, 0.18) !important;
    color: var(--accent-blue) !important;
    border: 1px solid rgba(45, 122, 255, 0.3);
    font-weight: 500;
}

/* === Elválasztó vonal === */
.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* === Checkbox === */
.form-check-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(45, 122, 255, 0.35);
}

.form-check-input:focus {
    border-color: rgba(45, 122, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(45, 122, 255, 0.2);
}

/* === Linkek === */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-cyan);
}

/* === Toast === */
.toast {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

/* === Modal === */
.modal-content {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 122, 255, 0.2);
    color: #ffffff;
    border-radius: var(--radius-md);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-title {
    color: #ffffff;
}

.btn-close {
    filter: invert(1) opacity(0.6);
}

.btn-close:hover {
    filter: invert(1) opacity(1);
}

/* === Validáció === */
.is-invalid {
    border-color: #ff4757 !important;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.invalid-feedback {
    font-size: 0.82rem;
    color: #ff6b81;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* === Kötelező mező jelzés === */
.required::after {
    content: " *";
    color: #ff4757;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(45, 122, 255, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 122, 255, 0.6);
}

/* === Spinner === */
.spinner-border {
    animation-duration: 0.75s;
}

/* === Responsive === */
@media (max-width: 576px) {
    .p-4 {
        padding: 1.25rem !important;
    }

    .p-md-5 {
        padding: 1.5rem !important;
    }

    .container-fluid {
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
