.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.input-minimal {
    border: none;
    border-bottom: 1px solid #e5e5e5;
    background: transparent;
    transition: border-color 0.3s ease;
    border-radius: 0;
    padding-left: 0;
}

.input-minimal:focus {
    outline: none;
    border-color: #e5e5e5; /* Keep base border color, underline handles the focus state */
}

/* Animated Underline */
.input-group {
    position: relative;
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.input-minimal:focus + .input-underline {
    width: 100%;
}

/* Form Container Animation */
.form-step-container {
    position: relative;
    width: 100%;
    /* No fixed height, let JS or content dictate, but ensure relative positioning context */
}

.form-step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Important: Hide backface to prevent flickering */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Button Hover Effect */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}
