* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #0f0f23;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.password-toggle:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.05);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s infinite ease-in-out;
}

.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3b82f6 0%, #1e40af 50%, transparent 70%);
    top: -250px;
    right: -150px;
}

.orb2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8b5cf6 0%, #6d28d9 50%, transparent 70%);
    bottom: -200px;
    left: -150px;
    animation-delay: 10s;
}

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

.login-container {
    position: relative;
    z-index: 10;
    background: rgba(24, 24, 37, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.cursor-glow {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.5) 0%,
        rgba(59, 130, 246, 0.3) 30%,
        rgba(236, 72, 153, 0.2) 50%,
        transparent 70%
    );
    filter: blur(40px);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.logo {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 32px;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 30px -5px rgba(102, 126, 234, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 400;
}

.microsoft-btn {
    width: 100%;
    padding: 14px 20px;
    background: #ffffff;
    color: #1f1f1f;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.microsoft-btn:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.microsoft-btn:active {
    transform: translateY(0);
}

.microsoft-logo {
    width: 20px;
    height: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5px;
}

.microsoft-logo span {
    display: block;
    width: 9px;
    height: 9px;
}

.ms-red { background: #f25022; }
.ms-green { background: #7fba00; }
.ms-blue { background: #00a4ef; }
.ms-yellow { background: #ffb900; }

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider span {
    padding: 0 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e5e7eb;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 13px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    opacity: 0.5;
    pointer-events: none;
}

.form-group input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    background: rgba(15, 15, 35, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    font-weight: 400;
}

.form-group input::placeholder {
    color: #6b7280;
}

.form-group input:focus {
    background: rgba(15, 15, 35, 0.8);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    background: rgba(24, 24, 37, 0.98);
    color: #fff;
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.3s ease;
    position: relative;
    min-width: 300px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast.removing {
    animation: slideOutRight 0.3s ease forwards;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.toast-success {
    background-color: #22c55e;
}

.toast-danger {
    background-color: #ef4444;
}

@media (max-width: 768px) {
    .login-container {
        padding: 40px 32px;
    }

    .login-header h1 {
        font-size: 26px;
    }
    
    .logo {
        width: 56px;
        height: 56px;
        margin-bottom: 28px;
    }
    
    .orb {
        filter: blur(90px);
    }
    
    .orb1 {
        width: 500px;
        height: 500px;
    }
    
    .orb2 {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }
    
    .login-container {
        padding: 32px 24px;
        border-radius: 16px;
    }

    .login-header h1 {
        font-size: 22px;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .logo {
        width: 48px;
        height: 48px;
        margin-bottom: 24px;
    }
    
    .logo-icon img {
        width: 28px;
        height: 28px;
    }

    .orb {
        filter: blur(70px);
    }
    
    .orb1 {
        width: 400px;
        height: 400px;
    }
    
    .orb2 {
        width: 350px;
        height: 350px;
    }

    .microsoft-btn {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input {
        padding: 10px 12px 10px 40px;
        font-size: 14px;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 14px;
    }
    
    .divider {
        margin: 20px 0;
        font-size: 0.85rem;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        padding: 14px 16px;
    }
    
    .toast-content {
        font-size: 0.85rem;
    }
    
    .cursor-glow {
        display: none;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 28px 20px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .microsoft-btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}