/* Variables based on Claudio website */
:root {
    --primary: #4169E1;
    --primary-light: #6E8AEA;
    --primary-hover: #5479E6;
    --accent: #81E9FF;
    --accent-light: #A8F0FF;
    --background: #F8F9FC;
    --card-bg: rgba(255, 255, 255, 0.75);
    --border: rgba(0, 0, 0, 0.05);
    --glow-primary: rgba(65, 105, 225, 0.1);
    --glow-accent: rgba(129, 233, 255, 0.15);
}

body {
    background-color: var(--background);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* Toast Animation Classes - NEW SMOOTH SYSTEM */
.toast-enter {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
}

.toast-enter-active {
    transform: translateX(0) scale(1);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-exit-active {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

/* Background circles animation */
.bg-circles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.2;
    transition: opacity 1.2s ease, filter 1.2s ease;
    animation: float-slow 25s ease-in-out infinite alternate;
}

.bg-circle-1 {
    background: var(--primary-light);
    width: 600px;
    height: 600px;
    top: -150px;
    right: -100px;
    animation-duration: 30s;
}

.bg-circle-2 {
    background: var(--accent);
    width: 500px;
    height: 500px;
    bottom: -100px;
    left: -150px;
    animation-duration: 35s;
    animation-direction: alternate-reverse;
}

.bg-circle-3 {
    background: var(--primary);
    width: 450px;
    height: 450px;
    top: 40%;
    left: 10%;
    opacity: 0.15;
    animation-duration: 28s;
}

@keyframes float-slow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(20px, 20px) scale(1.05);
    }
}

/* Glass card styling */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    animation: slideUp 1s forwards 0.2s;
}

/* Glow effect for the card */
.glow-effect {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--glow-primary) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse 10s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* Sound wave animation for the button - updated for 4 waves */
.sound-wave-button {
    width: 26px;
    height: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave-bar-button {
    width: 2px;
    height: 10px;
    margin: 0 1px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    animation: sound-wave-button-anim 1.2s ease-in-out infinite;
}

.wave-bar-button:nth-child(1) { 
    animation-delay: 0.0s; 
    height: 6px; 
}
.wave-bar-button:nth-child(2) { 
    animation-delay: 0.3s; 
    height: 10px; 
}
.wave-bar-button:nth-child(3) { 
    animation-delay: 0.6s; 
    height: 10px; 
}
.wave-bar-button:nth-child(4) { 
    animation-delay: 0.3s; 
    height: 6px; 
}

@keyframes sound-wave-button-anim {
    0%, 100% {
        transform: scaleY(0.5);
    }
    50% {
        transform: scaleY(1);
    }
}

/* Make wave animation more active on hover */
.btn-primary:hover .wave-bar-button {
    animation-duration: 0.8s;
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(65, 105, 225, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 auto 16px;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.08);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(65, 105, 225, 0.1);
    position: relative;
    transform: translateY(10px);
    opacity: 0;
    animation: slideUp 1s forwards 0.3s;
}

/* Removed the ::before pseudo-element that created the dot */

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(65, 105, 225, 0.6);
    }
    70% {
        box-shadow: 0 0 0 4px rgba(65, 105, 225, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(65, 105, 225, 0);
    }
}

/* Animation for sliding up elements */
@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input container styling */
.input-container {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(200, 206, 220, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.input-container:focus-within {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 10px rgba(65, 105, 225, 0.05);
    border: 1px solid var(--primary);
}

/* Added text-primary utility class */
.text-primary {
    color: var(--primary);
}

/* Input field styling */
.input-field {
    background-color: transparent;
    border: none;
    outline: none;
    color: #374151;
    font-weight: 400;
}

.input-field:focus {
    outline: none;
    box-shadow: none;
}

.input-field::placeholder {
    color: #94A3B8;
}

/* Password toggle styling */
.password-toggle {
    cursor: pointer;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--primary-hover);
}

/* Toggle switch for Remember me */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E2E8F0;
    transition: .3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
}

/* Primary button with glow effect */
.btn-primary {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 13px 26px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    background-color: rgba(65, 105, 225, 0.9);
    color: white;
    border: 1px solid rgba(65, 105, 225, 0.15);
    box-shadow: 
        0 4px 15px rgba(65, 105, 225, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 20px rgba(65, 105, 225, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(65, 105, 225, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Footer styling */
.footer-gradient {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(240, 244, 248, 0.9));
}

/* Fade in animation for all form elements */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .glass-card {
        margin: 0 10px;
    }
    
    .bg-circle {
        opacity: 0.1;
        filter: blur(100px);
    }
}

/* BankID Button Styles */
.btn-bankid {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-bankid:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white;
    text-decoration: none;
}

.btn-bankid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-bankid:hover::before {
    left: 100%;
}