/**
 * ThunderOrders - Unified Auth Pages Style
 * Dark glassmorphism design with animated background
 * Covers: Register, Verify, Forgot Password, Reset Password, Success
 */

/* ============================================
   BASE STYLES
   ============================================ */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
    overflow-x: hidden;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: 50%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -10%;
    left: 30%;
    animation-delay: -10s;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    top: 30%;
    left: 60%;
    animation-delay: -7s;
}

.orb-5 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    bottom: 20%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(10px, -10px) rotate(3deg);
    }
}

/* Sparkles */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle-1 { top: 15%; left: 20%; animation-delay: 0s; }
.sparkle-2 { top: 25%; right: 25%; animation-delay: 0.5s; }
.sparkle-3 { top: 60%; left: 15%; animation-delay: 1s; }
.sparkle-4 { top: 70%; right: 30%; animation-delay: 1.5s; }
.sparkle-5 { bottom: 25%; left: 35%; animation-delay: 2s; }
.sparkle-6 { bottom: 15%; right: 15%; animation-delay: 2.5s; }

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Rings Container */
.pulse-rings-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dynamic-pulse-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing ease-out forwards;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ============================================
   GLASS CONTAINER
   ============================================ */

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: containerGlow 4s ease-in-out infinite alternate;
}

.auth-container.success-mode {
    max-width: 420px;
}

@keyframes containerGlow {
    0% {
        box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset,
            0 0 30px rgba(240, 147, 251, 0.1);
    }
    100% {
        box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset,
            0 0 30px rgba(102, 126, 234, 0.15);
    }
}

/* ============================================
   LOGO
   ============================================ */

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo a {
    display: inline-block;
    line-height: 0;
}

.auth-logo img {
    display: block;
    max-width: 350px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */

.auth-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.progress-step.active .step-dot {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.4);
}

.progress-step.completed .step-dot {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-color: transparent;
    color: #fff;
}

.progress-step.completed .step-dot svg {
    stroke: #fff;
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: rgba(255, 255, 255, 0.9);
}

.progress-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.progress-line.completed {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

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

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

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2), rgba(102, 126, 234, 0.2));
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-badge svg {
    opacity: 0.9;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.highlight-email {
    color: rgba(240, 147, 251, 0.9);
    font-weight: 600;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Name Grid (First + Last) */
.auth-name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Input Group */
.auth-input-group {
    position: relative;
}

.input-wrapper {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.95rem;
    color: #fff;
    transition: all 0.3s ease;
}

.auth-input::placeholder {
    color: transparent;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(240, 147, 251, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Input Glow Effect */
.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.3);
}

.auth-input:focus ~ .input-glow {
    opacity: 1;
}

/* Floating Label */
.auth-input-label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
}

.auth-input:focus + .auth-input-label,
.auth-input:not(:placeholder-shown) + .auth-input-label,
.auth-input.has-value + .auth-input-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(240, 147, 251, 0.9);
    background: rgba(20, 20, 40, 0.95);
    padding: 0 0.5rem;
    left: 1rem;
    border-radius: 4px;
}

/* Handle label when password toggle is present */
.input-wrapper .auth-input:focus ~ .auth-input-label,
.input-wrapper .auth-input:not(:placeholder-shown) ~ .auth-input-label,
.input-wrapper .auth-input.has-value ~ .auth-input-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(240, 147, 251, 0.9);
    background: rgba(20, 20, 40, 0.95);
    padding: 0 0.5rem;
    left: 1rem;
    border-radius: 4px;
}

/* Autofill handling */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(30, 30, 50, 0.95) inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #fff;
}

.auth-input:-webkit-autofill + .auth-input-label,
.auth-input:-webkit-autofill ~ .auth-input-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(240, 147, 251, 0.9);
    background: rgba(20, 20, 40, 0.95);
    padding: 0 0.5rem;
    left: 1rem;
    border-radius: 4px;
}

/* Password Toggle Button */
.password-toggle-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.password-toggle-btn.active {
    color: rgba(240, 147, 251, 0.9);
}

/* Form Error */
.form-error {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #f5576c;
    padding-left: 0.25rem;
}

/* ============================================
   INPUT VALIDATION STATES
   ============================================ */

/* Valid state - green */
.auth-input.input-valid {
    border-color: rgba(74, 222, 128, 0.5) !important;
    background: rgba(74, 222, 128, 0.1) !important;
}

.auth-input.input-valid:focus ~ .input-glow {
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.auth-input.input-valid + .auth-input-label,
.auth-input.input-valid ~ .auth-input-label,
.auth-input.input-valid.has-value + .auth-input-label {
    color: rgba(74, 222, 128, 0.9) !important;
}

/* Invalid state - red */
.auth-input.input-invalid {
    border-color: rgba(245, 87, 108, 0.5) !important;
    background: rgba(245, 87, 108, 0.1) !important;
}

.auth-input.input-invalid:focus ~ .input-glow {
    box-shadow: 0 0 20px rgba(245, 87, 108, 0.3);
}

.auth-input.input-invalid + .auth-input-label,
.auth-input.input-invalid ~ .auth-input-label,
.auth-input.input-invalid.has-value + .auth-input-label {
    color: rgba(245, 87, 108, 0.9) !important;
}

/* ============================================
   PASSWORD REQUIREMENTS
   ============================================ */

.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-top: -0.5rem;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.req-item[data-valid="true"] {
    color: #4ade80;
}

.req-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    position: relative;
    transition: all 0.3s ease;
}

.req-item[data-valid="true"] .req-icon {
    background: #4ade80;
    border-color: #4ade80;
}

.req-item[data-valid="true"] .req-icon::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

/* ============================================
   CODE INPUTS (Verification)
   ============================================ */

.code-inputs-container {
    margin: 1rem 0;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.code-input:focus {
    outline: none;
    border-color: rgba(240, 147, 251, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.2);
}

.code-input.filled {
    border-color: rgba(240, 147, 251, 0.5);
    background: rgba(240, 147, 251, 0.1);
}

.code-input.error {
    border-color: #f5576c;
    background: rgba(245, 87, 108, 0.1);
    animation: shake 0.5s ease;
}

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

.code-error {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #f5576c;
}

/* ============================================
   RESEND CODE
   ============================================ */

.resend-container {
    text-align: center;
    margin-top: 1rem;
}

.resend-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.countdown {
    font-weight: 700;
    color: rgba(240, 147, 251, 0.9);
}

.resend-btn {
    background: transparent;
    border: 1px solid rgba(240, 147, 251, 0.5);
    color: rgba(240, 147, 251, 0.9);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resend-btn:hover:not(.disabled) {
    background: rgba(240, 147, 251, 0.1);
    border-color: rgba(240, 147, 251, 0.8);
}

.resend-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.info-box svg {
    flex-shrink: 0;
    color: rgba(79, 172, 254, 0.9);
}

.info-box div {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.info-box strong {
    color: rgba(255, 255, 255, 0.9);
}

.info-box a {
    color: rgba(240, 147, 251, 0.9);
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

/* ============================================
   SUCCESS ICON CONTAINER
   ============================================ */

.success-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(102, 126, 234, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.success-icon-container svg {
    color: rgba(79, 172, 254, 0.9);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(79, 172, 254, 0);
    }
}

/* ============================================
   SUCCESS ANIMATION (Checkmark)
   ============================================ */

.success-animation {
    margin: 0 auto 1.5rem;
    background: transparent;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4ade80;
    stroke-miterlimit: 10;
    margin: 0 auto;
    animation: checkmarkScale 0.3s ease-in-out 0.9s both;
    background: none !important;
    overflow: visible;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4ade80;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fff;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmarkScale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

.success-title {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.auth-submit {
    position: relative;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-submit.success-btn {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

.auth-submit.success-btn:hover {
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4);
}

/* Button Shine Effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.auth-submit:hover .btn-shine {
    left: 100%;
}

/* Button Loader */
.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.auth-submit.loading .btn-text {
    display: none;
}

.auth-submit.loading .btn-loader {
    display: block;
}

.auth-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(240, 147, 251, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: #fff;
    gap: 0.75rem;
}

.auth-link svg {
    transition: transform 0.3s ease;
}

.auth-link:hover svg {
    transform: translateX(3px);
}

.auth-link.back-link:hover svg {
    transform: translateX(-3px);
}

/* ============================================
   STEP CONTAINER
   ============================================ */

.auth-steps-container {
    position: relative;
}

.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Success step center alignment */
.success-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.success-step .auth-header {
    width: 100%;
}

.success-step .auth-submit {
    width: 100%;
}

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

@media (max-width: 520px) {
    .auth-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        animation: none; /* Wyłącz glow na mobile */
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-name-grid {
        grid-template-columns: 1fr;
    }

    .password-requirements {
        grid-template-columns: 1fr;
    }

    .code-input {
        width: 42px;
        height: 52px;
        font-size: 1.25rem;
    }

    .progress-line {
        width: 40px;
    }

    /* Wyłącz kosztowne animacje na mobile - oszczędność baterii */
    .orb {
        animation: none;
        filter: blur(40px);
        opacity: 0.3;
    }

    .sparkle {
        display: none;
    }

    .dynamic-pulse-ring {
        display: none;
    }
}

@media (max-width: 380px) {
    .auth-container {
        padding: 1.5rem 1.25rem;
    }

    .code-inputs {
        gap: 0.35rem;
    }

    .code-input {
        width: 38px;
        height: 48px;
        font-size: 1.1rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .orb,
    .sparkle,
    .dynamic-pulse-ring {
        animation: none;
    }

    .auth-container {
        animation: none;
    }

    .btn-shine {
        display: none;
    }

    .checkmark,
    .checkmark-circle,
    .checkmark-check {
        animation: none;
        stroke-dashoffset: 0;
    }

    .success-icon-container {
        animation: none;
    }
}

/* ============================================
   ANALYTICS CONSENT CHECKBOX (RODO)
   ============================================ */

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    margin-top: 0.5rem;
}

.analytics-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--orange-300, #FF8500);
}

.checkbox-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.checkbox-text .privacy-link {
    color: var(--orange-300, #FF8500);
    text-decoration: underline;
    transition: color 0.2s;
}

.checkbox-text .privacy-link:hover {
    color: var(--orange-400, #FF9100);
}

/* ============================================
   REQUIRED FIELDS NOTE
   ============================================ */

.required-fields-note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.required-fields-note .required-asterisk {
    color: #f5576c;
    font-weight: 600;
}

/* ============================================
   PHONE INPUT WITH PREFIX SELECTOR
   ============================================ */

.phone-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

/* Prefix Selector */
.phone-prefix-selector {
    position: relative;
    flex-shrink: 0;
}

.phone-prefix-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    height: 100%;
    min-height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.phone-prefix-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(240, 147, 251, 0.3);
}

.phone-prefix-btn:focus {
    outline: none;
    border-color: rgba(240, 147, 251, 0.5);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.2);
}

.prefix-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.prefix-code {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.prefix-arrow {
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.phone-prefix-selector.open .prefix-arrow {
    transform: rotate(180deg);
}

/* Hidden input for form submission */
.phone-prefix-selector input[type="text"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dropdown */
.phone-prefix-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(30, 30, 50, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.phone-prefix-selector.open .phone-prefix-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown scrollbar */
.phone-prefix-dropdown::-webkit-scrollbar {
    width: 6px;
}

.phone-prefix-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.phone-prefix-dropdown::-webkit-scrollbar-thumb {
    background: rgba(240, 147, 251, 0.3);
    border-radius: 3px;
}

.phone-prefix-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 147, 251, 0.5);
}

/* Prefix Option */
.prefix-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prefix-option:first-child {
    border-radius: 11px 11px 0 0;
}

.prefix-option:last-child {
    border-radius: 0 0 11px 11px;
}

.prefix-option:hover {
    background: rgba(240, 147, 251, 0.1);
}

.prefix-option.selected {
    background: rgba(240, 147, 251, 0.15);
}

.prefix-option .prefix-flag {
    font-size: 1.25rem;
}

.prefix-option .prefix-country {
    flex: 1;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.prefix-option .prefix-code {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Phone Number Input Wrapper */
.phone-number-wrapper {
    flex: 1;
    position: relative;
}

.phone-number-input {
    width: 100%;
    padding: 1rem 1.25rem !important;
}

/* Floating label for phone input */
.phone-number-wrapper .phone-label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
}

.phone-number-wrapper .phone-number-input:focus + .phone-label,
.phone-number-wrapper .phone-number-input:not(:placeholder-shown) + .phone-label,
.phone-number-wrapper .phone-number-input.has-value + .phone-label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(240, 147, 251, 0.9);
    background: rgba(20, 20, 40, 0.95);
    padding: 0 0.5rem;
    left: 1rem;
    border-radius: 4px;
}

/* Valid state label color */
.phone-number-wrapper .phone-number-input.input-valid + .phone-label {
    color: rgba(74, 222, 128, 0.9) !important;
}

/* Invalid state label color */
.phone-number-wrapper .phone-number-input.input-invalid + .phone-label {
    color: rgba(245, 87, 108, 0.9) !important;
}

/* Phone number input validation states */
.phone-number-input.input-valid {
    border-color: rgba(74, 222, 128, 0.5) !important;
    background: rgba(74, 222, 128, 0.1) !important;
}

.phone-number-input.input-invalid {
    border-color: rgba(245, 87, 108, 0.5) !important;
    background: rgba(245, 87, 108, 0.1) !important;
}

/* Responsive */
@media (max-width: 520px) {
    .phone-input-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .phone-prefix-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .phone-prefix-dropdown {
        width: 100%;
        min-width: auto;
    }
}
