/* =============================================
   AUTH – Közös stílusok (login + register)
   ============================================= */

:root {
    --primary-color: #2c2c2c;
    --secondary-color: #6B6560;
    --accent-color: #CD853F;
    --accent-dark: #814E34;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
}

/* ── Háttér ── */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
}

.bg-layer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 50%, #3a2a1a 100%);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.17;
    animation: orbFloat 9s ease-in-out infinite;
}

.bg-orb-1 {
    width: 560px;
    height: 560px;
    background: var(--accent-color);
    top: -130px;
    right: -130px;
    animation-delay: 0s;
}

.bg-orb-2 {
    width: 380px;
    height: 380px;
    background: var(--accent-dark);
    bottom: -90px;
    left: -90px;
    animation-delay: -4.5s;
}

.bg-grid {
    display: none;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(28px, -28px) scale(1.05); }
    66%       { transform: translate(-18px, 18px) scale(0.97); }
}

/* ── Wrapper & kártya ── */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    padding: 1.5rem;
}

.auth-wrapper--wide {
    max-width: 500px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(205, 133, 63, 0.2);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Logo ── */
.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo-mark {
    width: 54px;
    height: 54px;
    background: var(--accent-dark);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-logo-mark svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.auth-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.auth-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    display: block;
    line-height: 1;
}

.auth-brand-sub {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-top: 0.3rem;
    display: block;
}

/* ── Cím ── */
.auth-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.auth-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* ── Alertek ── */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b7a;
}

.alert-success {
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #4ddb77;
}

/* ── Form elemek ── */
.form-group { margin-bottom: 1rem; }

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.input-wrap { position: relative; }

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
    transition: color 0.3s;
}

.input-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.2); }

.form-input:focus {
    border-color: var(--accent-color);
    background: rgba(205, 133, 63, 0.06);
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.12);
}

/* Focus: label + icon színváltás */
.form-group:focus-within .form-label { color: var(--accent-color); }
.form-group:focus-within .input-icon { color: var(--accent-color); }

/* ── Jelszó toggle ── */
.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.25);
    padding: 0;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.toggle-password:hover { color: var(--accent-color); }

.toggle-password svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ── Submit gomb ── */
.btn-auth {
    width: 100%;
    padding: 1rem;
    background: var(--accent-dark);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-auth::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-auth:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-auth:hover::after { opacity: 1; }
.btn-auth:active { transform: translateY(0); }

/* ── Elválasztó ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

/* ── Link sor ── */
.auth-link-row {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.auth-link-row a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.auth-link-row a:hover { opacity: 0.8; text-decoration: underline; }

/* ── Vissza link ── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.back-link:hover { color: var(--accent-color); }

.back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .auth-card { padding: 2rem 1.5rem; }
}