@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #5a76f2;
    --secondary-color: #e0e6ff;
    --text-color: #1f2937;
    --placeholder-color: #9ca3af;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-heavy: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    background-image: radial-gradient(at 0% 0%, var(--secondary-color) 0%, transparent 50%),
                      radial-gradient(at 100% 100%, #d1e2ff 0%, transparent 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
}

.login-container {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px var(--shadow-heavy), 0 4px 12px var(--shadow-light);
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
}

.login-container:hover {
    transform: translateY(-5px);
}

h2 {
    margin-bottom: 1.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

input {
    width: 100%;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input::placeholder {
    color: var(--placeholder-color);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(90, 118, 242, 0.25);
}

.login-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.login-button:hover {
    background-color: #4a64e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(90, 118, 242, 0.3);
}

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

.link-group {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.link-group a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link-group a:hover {
    color: #4a64e6;
    text-decoration: underline;
}

@media (max-width: 500px) {
    .login-container {
        padding: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
}

.error {
  color: #f87171;
  background: rgba(255, 0, 0, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}

.login-container .logo {
    max-width: 10rem;
    margin-bottom: 2rem;
}