/**
 * Auth Styles
 * Style CSS dla autoryzacji (login, verify, kup)
 * 
 * Refaktoryzacja: Przeniesione z app/css/bilety.css
 */

/* Auth Box */
.px-auth-box {
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    padding: 48px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Glass glow effect at the top */
.px-auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.px-auth-box__header {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.px-logo--center {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.px-logo--center .px-logo__dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

.px-logo--center .px-logo__text-group {
    text-align: left;
    line-height: 1.1;
}

.px-logo--center .px-logo__main {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.px-logo--center .px-logo__sub {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.1em;
}

.px-auth-box h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.px-auth-box__subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    line-height: 1.5;
}

.px-auth-box__note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 32px;
}

/* Forms */
.px-auth-form,
.px-code-form {
    margin-top: 16px;
}

.px-form-group {
    margin-bottom: 16px;
    text-align: left;
}

.px-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
}

.px-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.px-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.px-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    pointer-events: none;
    transition: color 0.2s;
}

.px-input--has-icon {
    padding-left: 52px;
}

.px-input:focus {
    outline: none;
    border-color: var(--px-accent, #8b5cf6);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.px-input:focus~.px-input-icon,
.px-input-with-icon:focus-within .px-input-icon {
    color: var(--px-accent, #8b5cf6);
}

.px-input[readonly] {
    opacity: 0.7;
    cursor: not-allowed;
}

.px-code-input {
    width: 200px;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 8px;
    padding: 16px;
}

.px-code-inputs {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.px-code-form p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
}

/* Purchase Box */
.px-purchase-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    max-width: 600px;
    margin: 0 auto;
}

.px-purchase-box h1 {
    text-align: center;
    margin-bottom: 32px;
}

.px-form-section {
    margin-bottom: 32px;
}

.px-form-section h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.px-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .px-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Ticket Options */
.px-ticket-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.px-ticket-option {
    display: block;
    cursor: pointer;
}

.px-ticket-option input {
    display: none;
}

.px-ticket-option__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.2s;
}

.px-ticket-option:hover .px-ticket-option__content {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.px-ticket-option input:checked + .px-ticket-option__content {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.px-ticket-option__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.px-ticket-option__description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.px-ticket-option__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b5cf6;
}

/* Alerts */
.px-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.px-alert--error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.px-alert--success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.px-alert--warning {
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #fde047;
}

.px-alert--info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* Utility - Hidden */
.px-hidden {
    display: none !important;
}
