/*
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3e%3cg fill='none' fill-rule='evenodd'%3e%3cg fill='%23ffffff' fill-opacity='0.05'%3e%3cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e") repeat;
    opacity: 0.1;
}

 */
[x-cloak] {
        display: none !important;
    }

.main-title {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-radius: 1rem;
    height: 650px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.auth-container:hover {
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.3);
}

.step-content {
    padding: 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    overflow-y: auto;
}

.step-content.center-content {
    justify-content: center;
    overflow-y: visible;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 3px 3px 0;
}

.transition-enter {
    transition: opacity 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.transition-enter-start {
    opacity: 0;
}

.transition-enter-end {
    opacity: 1;
}

.transition-leave {
    transition: opacity 100ms cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.transition-leave-start {
    opacity: 1;
}

.transition-leave-end {
    opacity: 0;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.input-field:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
    outline: none;
}

input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1) !important;
    outline: none;
}

.code-input:focus,
.phone-code-input:focus,
.email-code-input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3) !important;
    outline: none;
    transform: scale(1.05);
}

.phone-code-input,
.email-code-input {
    width: 2.5rem;
    height: 3rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

input[type="text"]:valid,
input[type="email"]:valid,
input[type="tel"]:valid,
input[type="password"]:valid {
    border-color: #10b981;
}

input[type="text"]:invalid:not(:placeholder-shown),
input[type="email"]:invalid:not(:placeholder-shown),
input[type="tel"]:invalid:not(:placeholder-shown),
input[type="password"]:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.fixed.inset-0 {
    backdrop-filter: blur(4px);
}

.fixed.inset-0 > div {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .auth-container {
        margin: 0.5rem;
        height: 500px;
    }

    .step-content {
        padding: 1.5rem;
    }

    .phone-code-input,
    .email-code-input {
        width: 2rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .main-subtitle {
        font-size: 1rem;
    }

    .progress-bar {
        height: 3px;
    }
}

@media (max-width: 640px) {
    .step-content .grid.grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .auth-container {
        height: 450px;
    }

    .step-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 0.25rem;
        height: 400px;
    }

    .step-content {
        padding: 0.75rem;
    }

    .code-input,
    .phone-code-input,
    .email-code-input {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .transition-enter,
    .transition-leave,
    .progress-bar,
    .phone-code-input,
    .email-code-input,
    .btn-primary,
    .spinner {
        animation: none;
        transition: none;
    }
}

.input-field:focus-visible,
.phone-code-input:focus-visible,
.email-code-input:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

button:hover {
    transition: all 0.2s ease;
}

.text-blue-600:hover {
    transition: color 0.2s ease;
}

.text-red-500 {
    animation: shake 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
}