@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.container {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.88) 100%), url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 70%),
                radial-gradient(circle at bottom left, rgba(30, 58, 138, 0.3), transparent 70%);
    pointer-events: none;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.25rem 2rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-wrapper .header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 1.25rem 1.5rem;
    margin: -3.25rem -1rem 1.75rem -1rem;
    text-align: center;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.4);
}

.login-wrapper .header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.login-wrapper .header p {
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
}

.login-wrapper .error-message,
.login-wrapper b:not(:empty) {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    text-align: center;
}

form .input-group {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    position: relative;
    margin: 1.15rem 0;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

form .input-group:focus-within {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

form .input-group span {
    color: #64748b;
    font-size: 1rem;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    transition: color 0.2s ease;
}

form .input-group:focus-within span {
    color: #2563eb;
}

form .input-group .text,
form .input-group input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: #0f172a;
    font-family: inherit;
    font-weight: 500;
}

form .input-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.button-group button {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.button-group button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
}

.button-group button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }
    .login-wrapper .header {
        margin: -2.75rem -0.75rem 1.5rem -0.75rem;
    }
}