/* Authentication Forms Custom Styles */

/* Input field focus effects */
.auth-form-input:focus {
    border-color: hsl(var(--p));
    box-shadow: 0 0 0 2px hsla(var(--p) / 0.2);
    outline: none;
}

/* Animated labels */
.floating-label {
    transition: all 0.2s ease-in-out;
}

.auth-form-input:focus + .floating-label,
.auth-form-input:not(:placeholder-shown) + .floating-label {
    transform: translateY(-1.5rem) scale(0.85);
    color: hsl(var(--p));
}

/* Form section transitions */
.form-section {
    transition: all 0.3s ease-in-out;
}

.form-section:hover {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Password strength indicator */
.password-strength {
    height: 5px;
    margin-top: 0.5rem;
    border-radius: 0.25rem;
    background-color: #eee;
    overflow: hidden;
    position: relative;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    background-color: #f44336;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background-color: #f44336;
}

.password-strength-bar.medium {
    width: 66%;
    background-color: #ffa726;
}

.password-strength-bar.strong {
    width: 100%;
    background-color: #4caf50;
}

/* Tooltip styles */
.tooltip-wrapper {
    position: relative;
}

.tooltip {
    position: absolute;
    top: -40px;
    left: 0;
    background: hsl(var(--b));
    color: hsl(var(--bc));
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.tooltip-wrapper:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Form animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form {
    animation: fadeIn 0.5s ease-out;
}

.auth-form .form-control {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.auth-form .form-control:nth-child(1) { animation-delay: 0.1s; }
.auth-form .form-control:nth-child(2) { animation-delay: 0.2s; }
.auth-form .form-control:nth-child(3) { animation-delay: 0.3s; }
.auth-form .form-control:nth-child(4) { animation-delay: 0.4s; }
.auth-form .form-control:nth-child(5) { animation-delay: 0.5s; } 