:root {
    --background: 220 25% 6%;
    --foreground: 0 0% 98%;
    --card: 220 20% 10%;
    --card-foreground: 0 0% 98%;
    --popover: 220 20% 10%;
    --popover-foreground: 0 0% 98%;
    --primary: 353 89% 51%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 15% 20%;
    --secondary-foreground: 0 0% 98%;
    --muted: 220 15% 20%;
    --muted-foreground: 220 8% 60%;
    --accent: 353 89% 51%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 70% 50%;
    --destructive-foreground: 0 0% 98%;
    --border: 220 15% 18%;
    --input: 220 15% 18%;
    --ring: 353 89% 51%;
    --success: 142 76% 45%;
    --warning: 38 92% 50%;
    --radius: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0a0d14;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(244, 5, 82, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(244, 5, 82, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(13, 16, 23, 0.8) 0%, transparent 100%);
    color: hsl(var(--foreground));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://fivecfx.com/logo.png');
    background-size: 500px 500px;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.02;
    z-index: 0;
    pointer-events: none;
    filter: blur(2px);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(244, 5, 82, 0.03) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(244, 5, 82, 0.03) 50%, transparent 52%);
    background-size: 100px 100px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.container {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.card {
    background: linear-gradient(145deg, rgba(15, 19, 28, 0.95), rgba(20, 25, 35, 0.9));
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(244, 5, 82, 0.15);
    border-radius: var(--radius);
    box-shadow: 
        0 0 0 1px rgba(244, 5, 82, 0.1),
        0 30px 60px -12px rgba(0, 0, 0, 0.5),
        0 18px 36px -18px rgba(244, 5, 82, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: rgba(244, 5, 82, 0.3);
    box-shadow: 
        0 0 0 1px rgba(244, 5, 82, 0.2),
        0 40px 80px -12px rgba(0, 0, 0, 0.6),
        0 20px 40px -18px rgba(244, 5, 82, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(244, 5, 82, 0.4) 25%,
        rgba(244, 5, 82, 0.8) 50%,
        rgba(244, 5, 82, 0.4) 75%,
        transparent
    );
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.card-header {
    padding: 3rem 2rem 1.5rem;
    background: linear-gradient(180deg, 
        rgba(244, 5, 82, 0.08) 0%, 
        transparent 100%
    );
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(244, 5, 82, 0.3) 50%,
        transparent
    );
}

.header-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.75rem;
    display: block;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(244, 5, 82, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(244, 5, 82, 0.6));
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.25rem;
    text-shadow: 
        0 0 40px rgba(244, 5, 82, 0.6),
        0 0 20px rgba(244, 5, 82, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-description {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.input {
    display: flex;
    height: 3.25rem;
    width: 100%;
    border-radius: calc(var(--radius) - 0.2rem);
    border: 2px solid rgba(244, 5, 82, 0.2);
    background: rgba(10, 13, 20, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.25rem;
    font-family: 'Montserrat', sans-serif;
}

.input:focus {
    outline: none;
    border-color: rgba(244, 5, 82, 0.6);
    box-shadow: 
        0 0 0 3px rgba(244, 5, 82, 0.15),
        0 0 25px rgba(244, 5, 82, 0.3);
    background: rgba(10, 13, 20, 0.8);
    transform: translateY(-1px);
}

.input::placeholder {
    color: hsl(var(--muted-foreground));
    font-weight: 400;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: calc(var(--radius) - 0.2rem);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
    min-height: 3.25rem;
    padding: 0.875rem 2.5rem;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.button::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, height 0.6s;
}

.button:hover::before {
    width: 320px;
    height: 320px;
}

.button-primary {
    background: linear-gradient(135deg, #f40552 0%, #d10447 50%, #c20440 100%);
    color: white;
    box-shadow: 
        0 4px 20px rgba(244, 5, 82, 0.4),
        0 0 40px rgba(244, 5, 82, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 35px rgba(244, 5, 82, 0.5),
        0 0 70px rgba(244, 5, 82, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.button-primary:active {
    transform: translateY(-1px);
}

.button-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 
        0 4px 20px rgba(34, 197, 94, 0.3),
        0 0 40px rgba(34, 197, 94, 0.15);
}

.button-success:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(34, 197, 94, 0.4),
        0 0 50px rgba(34, 197, 94, 0.2);
}

.alert {
    border-radius: calc(var(--radius) - 0.2rem);
    border: 1px solid;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    display: flex;
    align-items: start;
    gap: 1rem;
    backdrop-filter: blur(15px);
    font-weight: 600;
    font-size: 0.95rem;
}

.alert-processing {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.alert-success {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.alert-destructive {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #0a0d14 0%, 
        #0f1219 50%, 
        #0a0d14 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    border-radius: 50%;
    animation: pulse-glow 2s infinite;
    filter: drop-shadow(0 0 50px rgba(244, 5, 82, 0.5));
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(244, 5, 82, 0.15);
    border-top: 4px solid #f40552;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    box-shadow: 
        0 0 30px rgba(244, 5, 82, 0.4),
        inset 0 0 20px rgba(244, 5, 82, 0.2);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 50px rgba(244, 5, 82, 0.5));
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
        filter: drop-shadow(0 0 70px rgba(244, 5, 82, 0.7));
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.w-full {
    width: 100%;
}

.gradient-text {
    background: linear-gradient(135deg, #f40552 0%, #ff2a73 25%, #ff1a6b 50%, #ff2a73 75%, #f40552 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}