.auth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
    background: transparent;
}

/* Digital Grid Background Effect */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 60s linear infinite;
}

@keyframes gridMove {
    from {
        transform: translate(-25%, -25%);
    }

    to {
        transform: translate(0, 0);
    }
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 243, 255, 0.1);
    animation: authFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    background: linear-gradient(135deg, #00f3ff 0%, #bd00ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

.auth-logo p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 12px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-form-container {
    position: relative;
    min-height: 280px;
}

.auth-form {
    display: none;
    animation: formFadeIn 0.4s ease-out forwards;
}

.auth-form.active {
    display: block;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #00f3ff;
    box-shadow: 0 0 0 4px rgba(0, 243, 255, 0.1);
}

.input-group input:focus+svg {
    color: #00f3ff;
}

.forgot-link {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: none;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #00f3ff;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #00f3ff 0%, #0077ff 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px -5px rgba(0, 119, 255, 0.4);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(0, 119, 255, 0.5);
    filter: brightness(1.1);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn span {
    letter-spacing: 1px;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-footer a {
    color: #00f3ff;
    text-decoration: none;
    font-weight: 600;
}

/* Background Animation Elements */
.bg-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #00f3ff;
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #bd00ff;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

/* Success Message Overlay */
.auth-success {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 3100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.auth-success.show {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    animation: successScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successScale {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}