* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: floatBubble 8s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    animation: floatBubble 10s ease-in-out infinite reverse;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-30px) translateX(20px); }
}

.login-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.1);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    animation: containerSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10;
}

@keyframes containerSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 220px;
    height: auto;
    margin-bottom: 25px;
    animation: logoFadeInDown 0.7s ease-out;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

@keyframes logoFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
    animation: textSlideIn 0.7s ease-out 0.15s backwards;
}

.login-header p {
    color: #718096;
    font-size: 14px;
    margin: 0;
    animation: textSlideIn 0.7s ease-out 0.25s backwards;
    letter-spacing: 0.3px;
}

@keyframes textSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    padding: 0;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    animation: buttonFadeIn 0.7s ease-out 0.35s backwards;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before {
    width: 60px;
    height: 60px;
}

.btn-login:hover {
    transform: translateY(-4px) scale(1.12);
    color: white;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

.btn-login:active {
    transform: translateY(-2px) scale(1.08);
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.form-container {
    display: flex;
    justify-content: flex-end;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    animation: toastSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(400px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.toast-body {
    padding: 14px 18px !important;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.btn-close {
    transition: transform 0.3s ease !important;
}

.btn-close:hover {
    transform: rotate(90deg) !important;
}

@media (max-width: 480px) {
    .login-container {
        padding: 35px 24px;
        margin: 20px;
        border-radius: 14px;
    }
    .login-logo { width: 180px; }
    .login-header h1 { font-size: 24px; }
    .login-header { margin-bottom: 32px; }

    body::before {
        width: 300px;
        height: 300px;
        top: -80px;
        left: -80px;
    }

    body::after {
        width: 200px;
        height: 200px;
        bottom: -40px;
        right: -40px;
    }
}
