/**
 * ============================================
 * PHILIPPE ARGENTO - AUTH PAGES PREMIUM STYLES
 * ============================================
 *
 * Login & Register oldalak prémium designja
 * - Glassmorphism
 * - Meleg bézs tónusok
 * - Sok whitespace
 * - Finom árnyékok és kerekítések
 *
 * @version 2.0.0
 * @date 2025-12-04
 */

:root {
    --pa-auth-bg: #F4F1EB;
    --pa-auth-card-bg: rgba(255, 255, 255, 0.75);
    --pa-auth-card-border: rgba(179, 168, 156, 0.2);
    --pa-auth-primary: #1E2615;
    --pa-auth-text: #2d3748;
    --pa-auth-text-muted: #718096;
    --pa-auth-input-bg: #FFFFFF;
    --pa-auth-input-border: #E8E6E2;
    --pa-auth-input-focus: #B3A89C;
}

/* ============================================
   AUTH PAGE LAYOUT
   ============================================ */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #F4F1EB 0%, #E8E6E2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(179, 168, 156, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(179, 168, 156, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ============================================
   AUTH CARD - MAIN CONTAINER
   ============================================ */

.auth-card {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-card-inner {
    background: var(--pa-auth-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--pa-auth-card-border);
    transition: all 400ms cubic-bezier(0.23, 0.65, 0.25, 0.95);
}

.auth-card-inner:hover {
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .auth-card-inner {
        padding: 36px 28px;
        border-radius: 20px;
    }
}

/* ============================================
   AUTH HEADER
   ============================================ */

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(179, 168, 156, 0.15);
}

.auth-logo {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
}

.auth-logo .sitename {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--pa-auth-primary);
    margin: 0;
    transition: opacity 300ms ease;
}

.auth-logo:hover .sitename {
    opacity: 0.8;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pa-auth-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.auth-header p {
    font-size: 1.05rem;
    color: var(--pa-auth-text-muted);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 576px) {
    .auth-header h1 {
        font-size: 1.75rem;
    }

    .auth-header p {
        font-size: 0.95rem;
    }
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.auth-body {
    animation: fadeInUp 0.5s ease-out;
}

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

.auth-body .form-label {
    font-weight: 600;
    color: var(--pa-auth-text);
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.auth-body .form-control,
.auth-body .input-group-text {
    border-radius: 12px;
    border: 2px solid var(--pa-auth-input-border);
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: all 250ms ease;
    background: var(--pa-auth-input-bg);
}

.auth-body .form-control:focus {
    border-color: var(--pa-auth-input-focus);
    box-shadow: 0 0 0 4px rgba(179, 168, 156, 0.1);
    background: #FFFFFF;
}

.auth-body .input-group-text {
    background: var(--pa-auth-input-bg);
    color: var(--pa-auth-text-muted);
    border-right: none;
    padding-right: 12px;
}

.auth-body .input-group .form-control {
    border-left: none;
    padding-left: 8px;
}

.auth-body .input-group:focus-within .input-group-text {
    border-color: var(--pa-auth-input-focus);
    background: #FFFFFF;
}

.auth-body .input-group:focus-within .form-control {
    border-left: 2px solid var(--pa-auth-input-focus);
}

/* Password toggle button */
.password-toggle {
    cursor: pointer;
    user-select: none;
    border-left: none !important;
    padding-left: 12px;
}

.password-toggle:hover {
    background: rgba(179, 168, 156, 0.05);
}

/* Form check (remember me, terms) */
.auth-body .form-check {
    padding-left: 1.75rem;
}

.auth-body .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--pa-auth-input-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 200ms ease;
}

.auth-body .form-check-input:checked {
    background-color: var(--pa-auth-primary);
    border-color: var(--pa-auth-primary);
}

.auth-body .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(179, 168, 156, 0.1);
}

.auth-body .form-check-label {
    color: var(--pa-auth-text);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.auth-body .btn-primary {
    background: var(--pa-auth-primary);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 300ms cubic-bezier(0.23, 0.65, 0.25, 0.95);
    box-shadow: 0 4px 12px rgba(30, 38, 21, 0.2);
    position: relative;
    overflow: hidden;
}

.auth-body .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.auth-body .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.auth-body .btn-primary:hover {
    background: #2a3620;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 38, 21, 0.3);
}

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

/* ============================================
   ALERTS
   ============================================ */

.auth-body .alert {
    border-radius: 12px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-body .alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    border-left: 4px solid #48bb78;
}

.auth-body .alert-danger {
    background: rgba(245, 101, 101, 0.1);
    color: #c53030;
    border-left: 4px solid #f56565;
}

.auth-body .alert-info {
    background: rgba(66, 153, 225, 0.1);
    color: #2c5282;
    border-left: 4px solid #4299e1;
}

.auth-body .alert i {
    font-size: 1.1rem;
    vertical-align: middle;
}

.auth-body .alert ul {
    padding-left: 20px;
}

/* ============================================
   AUTH LINKS
   ============================================ */

.auth-links {
    text-align: center;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(179, 168, 156, 0.15);
}

.auth-links p {
    color: var(--pa-auth-text-muted);
    font-size: 0.95rem;
}

.auth-links a,
.auth-body a {
    color: var(--pa-auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 200ms ease;
    position: relative;
}

.auth-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pa-auth-primary);
    transition: width 250ms ease;
}

.auth-links a:hover::after {
    width: 100%;
}

.auth-links a:hover,
.auth-body a:hover {
    color: #2a3620;
}

/* Forgot password link */
.forgot-password-link {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   FORM TEXT (hints)
   ============================================ */

.auth-body small.text-muted,
.auth-body .form-text {
    color: var(--pa-auth-text-muted);
    font-size: 0.85rem;
    display: block;
    margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 576px) {
    .auth-page {
        padding: 40px 16px;
    }

    .auth-body .form-control,
    .auth-body .input-group-text {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .auth-body .btn-primary {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.mb-3 {
    margin-bottom: 24px !important;
}

.w-100 {
    width: 100%;
}

.text-decoration-none {
    text-decoration: none !important;
}

/* Row/Col spacing for register form */
.auth-body .row {
    margin-left: -8px;
    margin-right: -8px;
}

.auth-body .row > [class*="col"] {
    padding-left: 8px;
    padding-right: 8px;
}
