* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --accent-color: #9d4edd;
    --accent-color-light: #b76de8;
    --accent-color-dark: #7b2cbf;
    --bg-color: #0a0a0a;
    --bg-color-light: #121212;
    --card-bg: rgba(18, 18, 18, 0.6);
    --card-hover-bg: rgba(24, 24, 24, 0.8);
    --text-color: #e5e7eb;
    --text-light: #9ca3af;
    --text-muted: #6b7280;
    --dark-input: #252535;
    --border-radius: 12px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

html,
body {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

body {
    background: linear-gradient(135deg, #050505 0%, #0f0f0f 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at top right, rgba(157, 78, 221, 0.1), transparent 70%),
      radial-gradient(circle at bottom left, rgba(157, 78, 221, 0.05), transparent 50%);
    z-index: -1;
  }
  
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(157, 78, 221, 0.1);
    transition: all 0.3s ease;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

.login-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(157, 78, 221, 0.2);
    transform: translateY(-5px);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #9d4edd;
    text-shadow: 0 0 15px rgba(157, 78, 221, 0.5);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(26, 26, 37, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #9d4edd;
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.25);
    background: rgba(26, 26, 37, 1);
}

.form-input:focus+.form-icon {
    color: #9d4edd;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #9d4edd 0%, #6c4de8 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.3);
}

.login-button:hover {
    background: linear-gradient(135deg, #8c6dff 0%, #9d4edd 100%);
    box-shadow: 0 6px 15px rgba(157, 78, 221, 0.4);
    transform: translateY(-2px);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(157, 78, 221, 0.3);
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.login-link {
    color: #9d4edd;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-link:hover {
    color: #8c6dff;
    text-decoration: underline;
}

.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, rgba(157, 78, 221, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.error-message {
    color: #ff6b6b;
    margin-top: 10px;
    font-size: 14px;
    text-shadow: #ff6b6b98 0 0 10px;
    text-align: center;
    animation: fadeIn 0.6s ease-out forwards;
}

@media (max-width: 480px) {
    .login-container {
        max-width: 90%;
        padding: 2rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeIn 0.6s ease-out forwards;
}

.form-group:nth-child(1) {
    animation: fadeIn 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.form-group:nth-child(2) {
    animation: fadeIn 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

.login-button {
    animation: fadeIn 0.6s ease-out 0.4s forwards;
    opacity: 0;
}

.login-footer {
    animation: fadeIn 0.6s ease-out 0.5s forwards;
    opacity: 0;
}