/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #8e44ad, #3498db);
    color: #333;
    position: relative;
}

/* Floating Background Circles */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-circle {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.floating-circle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    top: 60%;
    left: 75%;
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

/* Keyframe Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Welcome Text */
.welcome-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

.welcome-text p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 30px;
    text-align: center;
}

/* Input Fields */
.input-container {
    position: relative;
    margin-bottom: 20px;
}

.input-container input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    background: none;
    transition: 0.3s;
}

.input-container input:focus {
    border-color: #3498db;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.input-container label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 16px;
    color: #aaa;
    pointer-events: none;
    transition: 0.3s;
}

.input-container input:focus ~ label,
.input-container input:not(:placeholder-shown) ~ label {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: #3498db;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #3498db;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: #2980b9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    font-size: 14px;
    color: #aaa;
}

.divider:before,
.divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
    margin: 0 10px;
}

/* Google Button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    color: #333;
}

.btn-google img {
    width: 20px;
    margin-right: 10px;
}

.btn-google:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Register Text */
.register-text {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
}

.register-text a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.register-text a:hover {
    text-decoration: underline;
}

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

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