:root {
    --background: 0 0% 0%;
    --foreground: 0 0% 98%;
    --card: 0 0% 5%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 5%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 100%;
    --primary-foreground: 0 0% 0%;
    --secondary: 0 0% 10%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 10%;
    --muted-foreground: 0 0% 60%;
    --accent: 0 0% 100%;
    --accent-foreground: 0 0% 0%;
    --destructive: 0 70% 50%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 15%;
    --input: 0 0% 10%;
    --ring: 0 0% 100%;
    --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: #000000;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
    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: #000000;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.01) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.01) 50%, transparent 52%);
    background-size: 100px 100px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
}

.container {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.95), rgba(5, 5, 5, 0.9));
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 30px 60px -12px rgba(0, 0, 0, 0.8),
        0 18px 36px -18px rgba(0, 0, 0, 0.5),
        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(255, 255, 255, 0.2);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 40px 80px -12px rgba(0, 0, 0, 0.9),
        0 20px 40px -18px rgba(0, 0, 0, 0.6),
        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(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.2) 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(255, 255, 255, 0.03) 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(255, 255, 255, 0.2) 50%,
        transparent
    );
}

.header-logo-text {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 auto 1.75rem;
    display: block;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.1em;
}

.header-logo-text:hover {
    transform: scale(1.05);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
}

.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(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 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(255, 255, 255, 0.3);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.1),
        0 0 25px rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 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, #ffffff 0%, #e0e0e0 50%, #cccccc 100%);
    color: #000000;
    box-shadow: 
        0 4px 20px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 35px rgba(255, 255, 255, 0.3),
        0 0 70px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.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: #000000;
    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 {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 2rem;
    animation: pulse-glow 2s infinite;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
        text-shadow: 0 0 70px rgba(255, 255, 255, 0.5);
    }
}

@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, #ffffff 0%, #e0e0e0 25%, #ffffff 50%, #e0e0e0 75%, #ffffff 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%; }
}