/* Page transition animations — shared across login, signup, dashboard */

/* Fade up entry animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fade in from left */
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scale in */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Subtle pulse for accent elements */
@keyframes subtlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Slide down for notifications/toasts */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Staggered fade-up for cards and form fields */
.anim-fade-up { animation: fadeUp 0.4s ease both; }
.anim-fade-up-d1 { animation: fadeUp 0.4s 0.05s ease both; }
.anim-fade-up-d2 { animation: fadeUp 0.4s 0.1s ease both; }
.anim-fade-up-d3 { animation: fadeUp 0.4s 0.15s ease both; }
.anim-fade-up-d4 { animation: fadeUp 0.4s 0.2s ease both; }
.anim-fade-up-d5 { animation: fadeUp 0.4s 0.25s ease both; }

.anim-fade-left { animation: fadeLeft 0.4s ease both; }
.anim-scale-in { animation: scaleIn 0.35s ease both; }

/* Button press effect */
.btn-press:active {
    transform: scale(0.97);
    transition: transform 0.1s;
}

/* Input focus glow */
.input-glow:focus {
    border-color: rgba(204, 255, 0, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Card hover lift */
.card-hover:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    transition: border-color 0.2s, transform 0.2s;
}

/* Success checkmark animation */
@keyframes checkDraw {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}
.anim-check path {
    stroke-dasharray: 24;
    animation: checkDraw 0.4s ease 0.2s both;
}

/* Logo spin on load */
@keyframes logoSpin {
    from { transform: rotate(-90deg); opacity: 0; }
    to { transform: rotate(0); opacity: 1; }
}
.anim-logo { animation: logoSpin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* Metric number count-up shimmer */
@keyframes numberReveal {
    from { opacity: 0; filter: blur(4px); }
    to { opacity: 1; filter: blur(0); }
}
.anim-number { animation: numberReveal 0.3s ease both; }
