/* formpages.css - Centralized Premium Form Styles */

/* Ambient Glows */
.form-ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}
.glow-cyan {
    top: 20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
}
.glow-purple {
    bottom: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
}

/* Form Container */
.premium-form-panel {
    background: rgba(20, 20, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Enhanced Inputs & Labels */
.auth-label, .glass-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}
.glass-input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}
.glass-input:focus {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(15, 15, 20, 0.8);
}

/* Select Styling */
select.glass-input {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 50%;
}

/* Buttons */
.action-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}
.action-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.action-btn-primary {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}
.action-btn-primary:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.5);
    color: #fff;
}

/* HTMX Loading State for Buttons */
.htmx-request .htmx-indicator-btn,
.htmx-indicator-btn.htmx-request {
    pointer-events: none;
    opacity: 0.8;
}

.htmx-request .htmx-indicator-btn .btn-text,
.htmx-request .htmx-indicator-btn .btn-icon,
.htmx-indicator-btn.htmx-request .btn-text,
.htmx-indicator-btn.htmx-request .btn-icon {
    opacity: 0 !important;
}

.htmx-request .htmx-indicator-btn .btn-loader,
.htmx-indicator-btn.htmx-request .btn-loader {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    font-size: 1.25rem;
}

/* Riot Sign In Button Specifics */
.rso-connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(90deg, #eb0029, #c30022);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(235, 0, 41, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.rso-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 0, 41, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}
.rso-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Social Buttons */
.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-login-btn img {
    width: 22px;
    height: 22px;
}
.social-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Elegant Errors */
.form-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 0.8rem;
    margin-top: 0.5rem;
}
.form-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Wizard Progress Bar */
.wizard-progress-container {
    margin-bottom: 3rem;
    padding: 0 1rem;
}
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}
.progress-track {
    position: absolute;
    top: 21px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}
.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    background: #38bdf8;
    transform: translateY(-50%);
    z-index: 1;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    width: 0%;
}
.step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: default;
    width: 80px;
}
.step-item.clickable {
    cursor: pointer;
}
.step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
}
.step-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    text-align: center;
    margin-top: 0.8rem;
}
.step-item.active .step-circle {
    background: #0f172a;
    border-color: #38bdf8;
    color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    transform: scale(1.1);
}
.step-item.active .step-label {
    color: #fff;
    transform: translateY(-2px);
}
.step-item.completed .step-circle {
    background: #38bdf8;
    border-color: #38bdf8;
    color: #0f172a;
}
.step-item.completed .step-label {
    color: #38bdf8;
    opacity: 0.8;
}

/* Wizard Step Transitions */
.wizard-step, .step-container {
    animation: fadeInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Toggles */
.toggle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 34px;
}
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.toggle-switch input:checked + .slider {
    background-color: #10b981;
}
.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

/* Filter Pills */
.filter-pill-wrapper {
    position: relative;
}
.filter-pill-wrapper input[type="checkbox"],
.filter-pill-wrapper input[type="radio"] {
    display: none;
}
.filter-pill-label {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    user-select: none;
    backdrop-filter: blur(4px);
}
.filter-pill-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #fff;
}
.filter-pill-wrapper input:checked + .filter-pill-label {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #fff;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3), inset 0 0 10px rgba(56, 189, 248, 0.1);
}

/* Modals */
.glass-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.glass-modal-content {
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Brighter calendar icon for date/month inputs */
.glass-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.glass-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}
