/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    background: url('../image/login.jpeg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease-in-out;
}

.login-box {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    width: 400px;
    text-align: center;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease;
}

.login-box h2 {
    font-size: 2rem;
    color: #ff6f00;
    margin-bottom: 10px;
}

.login-box p {
    color: #333;
    margin-bottom: 30px;
}

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

.input-box {
    position: relative;
    margin-bottom: 30px;
}

.input-box input {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ff6f00;
    outline: none;
    background: transparent;
    color: #333;
    font-size: 1.2rem;
    transition: 0.3s;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 10px;
    color: #666;
    font-size: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.5s;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
    top: -10px;
    left: 10px;
    color: #ff6f00;
    font-size: 0.9rem;
}

.login-btn {
    padding: 10px;
    border: none;
    background-color: #ff6f00;
    color: white;
    font-size: 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease;
    margin-bottom: 20px;
}

.login-btn:hover {
    background-color: #ff8f00;
    box-shadow: 0 5px 15px rgba(255, 111, 0, 0.4);
}

.signup-text {
    color: #333;
}

.signup-text a {
    color: #ff6f00;
    text-decoration: none;
    transition: 0.3s ease;
}

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

/* Styling for the "Back to Home" link */
.home-link {
    display: inline-block;
    margin-top: 20px;
    color: #ff6f00;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.home-link:hover {
    text-decoration: underline;
    color: #ff8f00;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
