/* Reset some default styles */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Background and Container */
body {
    background: radial-gradient(circle at top left, #121212, #1e1e1e);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.login-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    max-width: 360px;
    width: 100%;
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

/* Animation for the login card */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo {
    width: 60px;
    height: auto;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 1.25rem;
    margin: 0;
}

/* Input Fields */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #9e9e9e;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus {
    border-color: #00d084;
    box-shadow: 0 0 8px rgba(0, 208, 132, 0.5);
    outline: none;
}

/* Submit Button */
button {
    width: 100%;
    padding: 0.75rem;
    background: #28a745;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: linear-gradient(135deg, #00c47b, #005e4a);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
    transform: translate(-50%, -50%);
    z-index: 0;
}

button:hover::after {
    width: 400%;
    height: 400%;
    top: -50%;
    left: -50%;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.125rem;
    }

    input {
        font-size: 0.875rem;
    }

    button {
        font-size: 1rem;
    }
}
