@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #6C5CE7;
    --secondary-color: #FF6B6B;
    --accent-color: #FFA502;
    --background-color: #F0F3F7;
    --card-background: rgba(255, 255, 255, 0.8);
    --text-color: #2D3436;
    --text-light: #636E72;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-form {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

input, .password-container {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
    background-color: white;
}

input:focus, .password-container:focus-within {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
}

.password-container input {
    flex: 1;
    border: none;
    padding: 0.8rem;
    padding-right: 2.5rem;
    background-color: transparent;
}

.toggle-password {
    position: absolute;
    right: 0.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    background: none;
    border: none;
    padding: 0;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.btn-login, .btn-google {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
}

.btn-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--text-light);
}

.divider span {
    padding: 0 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-google {
    background-color: white;
    color: var(--text-color);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-google:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

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

.forgot-password, .signup-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.forgot-password a, .signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password a:hover, .signup-link a:hover {
    color: var(--secondary-color);
}

.error-message {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .login-form {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }

    .btn-login, .btn-google {
        padding: 0.7rem;
    }
}

.login-form h1 {
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form h1 img {
    height: 40px;
    width: auto;
    object-fit: contain;
}
