body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #007bff, #28a745);
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 70%),
                radial-gradient(circle at 20% 20%, rgba(0,123,255,0.4), transparent 80%),
                radial-gradient(circle at 80% 80%, rgba(40,167,69,0.4), transparent 80%);
    animation: moveBackground 3s infinite alternate;
    z-index: -1;
}

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

.form-container {
    background: rgba(255, 255, 255, 0.9);
    padding:1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    width: 85%;
    position: relative;
}

.form-container h1 {
    text-align: center;
    margin-bottom: 0.8rem;
    color: #007bff;
    font-size: 1.6rem;
    font-weight: bold;
    text-shadow: 2px 2px rgba(0, 0, 0, 0.1);
}

.form-container form {
    display: flex;
    flex-direction: column;
}

.form-container label {
    margin-bottom: 0.4rem;
    font-weight: bold;
}

.form-container input {
    padding: 0.6rem;
    margin-bottom: 0.8rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: rgba(245, 245, 245, 0.8);
}

.form-container input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.5);
    outline: none;
}

.form-container input[type="submit"] {
    background: linear-gradient(135deg, #007bff, #28a745);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 0.8rem;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    transition: background 0.3s, transform 0.2s;
}

.form-container input[type="submit"]:hover {
    background: linear-gradient(135deg, #0056b3, #1e7e34);
    transform: scale(1.05);
}

.form-container p {
    text-align: center;
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.8rem;
}

.form-container p a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.form-container p a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 70px;
    height: 70px;
}

.floating-element:nth-child(2) {
    top: 50%;
    left: 80%;
}

.floating-element:nth-child(3) {
    top: 70%;
    left: 30%;
    width: 60px;
    height: 60px;
}

.social-signup {
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem; /* Adds space between the buttons */
}

.social-button {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #555;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s, transform 0.2s;
}

.social-button:hover {
    background: #f8f8f8;
    transform: scale(1.05);
}

.social-button img {
    width: 20px;
    height: 20px;
}

.error-message {
    color: red;
    font-size: 0.75rem;
    display: none;
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
