* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    height: -webkit-fill-available;
    background-color: #1e40af;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    overscroll-behavior: contain;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    z-index: 0;
    will-change: transform;
}

.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.support-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border-radius: 32px;
    padding: 30px;
    width: 100%;
    max-width: 520px;
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: height 0.35s ease, max-height 0.35s ease;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #34d399);
    border-radius: 32px 32px 0 0;
}

.logo-section {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 20px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(96, 165, 250, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: white;
}

h1 {
    font-family: 'Space Grotesk', sans-serif;
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #64748b;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.form-group {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

label {
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    min-width: 43px;
}

input {
    width: 100%;
    padding: 18px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 400;
    background: rgba(248, 250, 252, 0.8);
    color: #1e293b;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    backdrop-filter: blur(10px);
}

input:focus {
    border-color: #60a5fa;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 0 0 4px rgba(96, 165, 250, 0.1),
        0 8px 32px rgba(96, 165, 250, 0.15);
    transform: translateY(-2px);
}

input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(96, 165, 250, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(96, 165, 250, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    margin: 36px 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 20px;
}

.create-widget-link {
    display: block;
    text-align: center;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(59, 130, 246, 0.05);
    backdrop-filter: blur(10px);
}

.create-widget-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
}

.create-widget-link:active {
    transform: translateY(-1px);
}

.text-link {
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .container { padding: 16px; }
    .support-card { padding: 32px 24px; border-radius: 24px; }
    .form-group { gap: 12px; }
    label { min-width: auto; }
    input { 
        padding: 16px 20px; 
        font-size: 16px;
        -webkit-appearance: none;
        appearance: none;
        -webkit-user-select: text;
        user-select: text;
    }
    .submit-btn { 
        padding: 16px; 
        font-size: 15px;
        min-height: 48px;
        -webkit-appearance: none;
        appearance: none;
        touch-action: manipulation;
    }
    .create-widget-link { padding: 16px; font-size: 15px; }
}

@media (max-width: 480px) {
    .container { padding: 12px; }
    .support-card { 
        padding: 28px 20px; 
        margin: 12px; 
        border-radius: 20px; 
    }
    h1 { font-size: 24px; line-height: 1.2; }
    .subtitle { font-size: 14px; }
    .logo { width: 56px; height: 56px; }
    .logo svg { width: 28px; height: 28px; }
    .form-group { margin-bottom: 20px; gap: 10px; }
    input { padding: 14px 18px; border-radius: 14px; }
    .submit-btn { padding: 14px; border-radius: 14px; }
    .create-widget-link { padding: 14px; border-radius: 14px; }
    .divider { margin: 28px 0; font-size: 13px; }
    .text-link { font-size: 13px; }
}

@media (max-width: 360px) {
    .support-card { padding: 24px 16px; margin: 8px; }
    h1 { font-size: 22px; }
    .logo-section { margin-bottom: 24px; }
    input { padding: 12px 16px; }
    .submit-btn { padding: 12px; }
}

@media (max-height: 600px) and (orientation: landscape) {
    .container { padding: 8px; align-items: flex-start; }
    .support-card { margin: 8px 0; }
    .logo-section { margin-bottom: 16px; }
    .logo { width: 48px; height: 48px; }
    h1 { font-size: 20px; margin-bottom: 8px; }
    .subtitle { font-size: 13px; }
    .form-group { margin-bottom: 16px; }
    .divider { margin: 20px 0; }
}

@media (hover: none) and (pointer: coarse) {
    body {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    input, .submit-btn, .create-widget-link {
        -webkit-user-select: text;
        user-select: text;
    }
    
    .submit-btn:hover, .create-widget-link:hover {
        transform: none;
    }
    
    .submit-btn:active, .create-widget-link:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

@media (max-width: 640px) {
    .support-card {
        padding: 40px 28px;
        margin: 20px;
        border-radius: 24px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .logo {
        width: 64px;
        height: 64px;
    }
} 