:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #ecf0f1;
    --background-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: var(--background-gradient);
    color: var(--text-color);
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10.01%);
    background-size: 20px 20px;
    animation: moveBackground 10s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-100px) translateX(-100px); }
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--box-shadow);
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.logo i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.logo h1 {
    font-size: 1.5rem;
    margin-top: 10px;
    font-weight: 600;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.7;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    font-size: 0.9rem;
}

.options a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.options a:hover {
    color: var(--accent-color);
}

.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: var(--secondary-color);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-login {
    text-align: center;
    margin: 20px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.register-link {
    text-align: center;
    font-size: 0.9rem;
}

.register-link a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: var(--accent-color);
}

/* Mobile and small devices */
@media (max-width: 767px) {
    .login-box {
        padding: 20px;
        width: 90%;
        margin: 0 auto;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .input-group input {
        padding: 10px 10px 10px 35px;
        font-size: 14px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .login-btn {
        padding: 10px;
        font-size: 14px;
    }

    .social-login p {
        font-size: 14px;
    }

    .register-link {
        font-size: 0.8rem;
    }
}

/* Tablets and medium devices */
@media (min-width: 768px) and (max-width: 1024px) {
    .login-box {
        width: 70%;
        max-width: 500px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .input-group input {
        padding: 12px 12px 12px 40px;
    }
}

/* Disable box rotation on mobile devices */
@media (max-width: 767px) {
    .login-box {
        transform: none !important;
    }
}
