/* ==============================================================================
   OgHost.pl - Ekrany Logowania i Rejestracji (auth.css)
   Zoptymalizowana, kompaktowa skala w motywie z projektu strona (Lukis538x_)
   ============================================================================== */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 1.5rem 1rem;
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 410px;
    z-index: 10;
}

.auth-card {
    background: rgba(26, 26, 36, 0.75) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(123, 63, 228, 0.3) !important;
    border-radius: 18px !important;
    padding: 1.75rem 1.6rem !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(123, 63, 228, 0.2) !important;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

/* Górny pasek gradientowy w stylu strona */
.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-lavender));
}

.auth-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
}

.auth-logo .brand-icon-box {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    border-radius: 10px;
}

.auth-logo .brand-name {
    font-size: 1.2rem;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--light-purple), var(--accent-lavender));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.auth-subtitle {
    color: var(--text-gray);
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

/* Przełącznik zakładek Logowanie / Rejestracja */
.auth-tabs {
    display: flex;
    background: #121218;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 3px;
    margin-bottom: 1.25rem;
    gap: 3px;
}

.auth-tab-btn {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: 50px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-tab-btn:hover {
    color: var(--text-white);
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-lavender) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(123, 63, 228, 0.4);
}

.auth-card .form-group {
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-card .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-white);
}

/* Pola tekstowe w auth */
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
    background: #121218;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--text-white);
    font-size: 0.88rem;
    width: 100%;
    transition: var(--transition-fast);
}

.auth-card input:focus {
    outline: none;
    border-color: var(--accent-lavender);
    box-shadow: 0 0 0 2px rgba(123, 63, 228, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-gray);
}

.auth-footer a,
.auth-switch-link {
    color: var(--accent-lavender);
    font-weight: 600;
    transition: var(--transition-fast);
}

.auth-footer a:hover,
.auth-switch-link:hover {
    color: var(--light-purple);
    text-decoration: underline;
}

.auth-switch-link {
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    padding: 0;
    font-family: inherit;
}

.auth-legal-link {
    color: var(--accent-lavender);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.auth-legal-link:hover {
    color: var(--light-purple);
    text-decoration: underline;
}

/* ==========================================================================
   NOWOŚCI: Oczko hasła, Miernik siły hasła, Własne Tooltipy walidacji
   ========================================================================== */

/* 1. Pole hasła z oczkiem */
.password-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-field-wrapper input {
    padding-right: 42px !important;
}

.btn-toggle-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 6px 8px;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    user-select: none;
    z-index: 2;
}

.btn-toggle-eye:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-toggle-eye:focus {
    outline: none;
    color: var(--accent-lavender);
}

/* 2. Miernik siły hasła */
.pw-strength-container {
    margin-top: 6px;
    margin-bottom: 4px;
    animation: fadeIn 0.25s ease;
}

.pw-strength-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.pw-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.pw-strength-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #94a3b8;
}

.pw-strength-label strong {
    transition: color 0.3s;
}

/* 3. Upiększony Tooltip Walidacji (zastępujący szary dymek przeglądarki) */
.auth-custom-tooltip {
    position: fixed !important;
    z-index: 999999;
    display: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    max-width: 360px;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.75));
}

.auth-custom-tooltip.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.auth-tooltip-inner {
    background: #151624;
    border: 1px solid rgba(255, 121, 63, 0.5);
    box-shadow: 0 0 25px rgba(255, 121, 63, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f1f2f6;
    font-size: 0.81rem;
    line-height: 1.35;
    font-weight: 500;
}

.auth-tooltip-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, #ff793f, #ff5252);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.4);
}

.auth-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
}

/* Strzałka na górze tooltipa (gdy tooltip jest pod polem) */
.auth-custom-tooltip.arrow-top .auth-tooltip-arrow {
    top: -7px;
    left: 24px;
    border-bottom: 7px solid rgba(255, 121, 63, 0.6);
}

/* Strzałka na dole tooltipa (gdy tooltip jest nad polem) */
.auth-custom-tooltip.arrow-bottom .auth-tooltip-arrow {
    bottom: -7px;
    left: 24px;
    border-top: 7px solid rgba(255, 121, 63, 0.6);
}

/* Obwódka błędu na błędnym polu */
.auth-card input.input-invalid {
    border-color: #ff5252 !important;
    box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.35) !important;
    animation: shakeInput 0.35s ease;
}

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

/* ==============================================================================
   Przyciski integracji społecznościowych (Google & Discord OAuth)
   ============================================================================== */
.auth-social-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0 1rem 0;
    color: var(--text-gray);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.auth-social-separator::before,
.auth-social-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-social-separator span {
    padding: 0 12px;
}

.auth-social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0.2rem;
}

.btn-social-oauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-social-oauth:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.btn-social-google:hover {
    border-color: rgba(66, 133, 244, 0.6);
    background: rgba(66, 133, 244, 0.1);
}

.btn-social-discord:hover {
    border-color: rgba(88, 101, 242, 0.6);
    background: rgba(88, 101, 242, 0.1);
}

/* ==============================================================================
   Pełnoekranowy Pasek Powiadomień na Górze Strony (Full Width Banner)
   ============================================================================== */
.auth-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    padding: 14px 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    animation: authBannerSlide 0.3s ease-out;
}

@keyframes authBannerSlide {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-top-banner.flash-error {
    background: rgba(185, 28, 28, 0.95);
    border-bottom: 2px solid #ef4444;
    color: #ffffff;
}

.auth-top-banner.flash-success {
    background: rgba(4, 120, 87, 0.95);
    border-bottom: 2px solid #10b981;
    color: #ffffff;
}

.auth-top-banner.flash-warning {
    background: rgba(180, 83, 9, 0.95);
    border-bottom: 2px solid #f59e0b;
    color: #ffffff;
}

.auth-top-banner.flash-info {
    background: rgba(29, 78, 216, 0.95);
    border-bottom: 2px solid #3b82f6;
    color: #ffffff;
}

.auth-top-banner-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 500;
}

.auth-top-banner .flash-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.auth-top-banner .flash-text {
    flex: 1;
    line-height: 1.5;
}

.auth-top-banner .flash-text a {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    background: rgba(0, 0, 0, 0.28);
    padding: 3px 10px;
    border-radius: 6px;
    margin: 0 4px;
    display: inline-block;
    transition: background 0.2s;
}

.auth-top-banner .flash-text a:hover {
    background: rgba(0, 0, 0, 0.5);
}

.auth-top-banner .flash-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: opacity 0.2s, background 0.2s;
}

.auth-top-banner .flash-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}


