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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f7f6;
    color: #171717;
}

.container {
    display: flex;
    border-radius: 15px;
    background-color: #f5f7f6;
    overflow: hidden;
    height: auto;
}

.logo-container {
    display: flex;
    text-align: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 1.5rem;
}

.logo-container img {
    width: 200px !important;
}

.login-section {
    margin: 0 auto;
}

.login-section h4 {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

.btn-primary {
    background-color: #000000;
    margin-top: 10px;
    border: none;
    border-radius: 15px;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
}

.btn-primary:hover {
    background-color: #333333;
}

.or-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #888888;
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.or-divider span {
    margin: 0 1rem;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    justify-content: space-around;
    margin: 50px;
    margin-top: 1rem;
}

.social-login img {
    margin: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.login-section {
    margin: 0 auto;
    width: 330px;
}

.login-section h4 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-section p {
    font-size: 0.9rem;
    color: #555555;
    text-align: center;
    margin-bottom: 2rem;
}

.login-section .form-group {
    margin: 20px auto;
}

.form-group input {
    font-size: 1.1rem;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle i {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    color: #000000;
}

.register-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.register-link a {
    text-decoration: none;
    color: #000000;
    font-weight: bold;
}

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

.input-group {
    font-size: 1.25rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.input {
    all: unset;
    color: #333;
    padding: 1rem;
    border: 1px solid #9e9e9e;
    border-radius: 10px;
    width: 100%;
    height: 10px;
    transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.label {
    position: absolute;
    top: 0.6rem;
    left: 0.9rem;
    color: #9e9e9e;
    font-size: 1rem;
    pointer-events: none;
    transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus {
    border: 1px solid #000000;
}

.input:is(:focus, :valid) ~ .label {
    transform: translateY(-100%) scale(0.8);
    background-color: #f5f7f6;
    padding-inline: 0.2rem;
    color: #000000;
}

@media screen and (max-width: 768px) {
    .body {
        background-color: #ffffff;
    }
    .container {
        flex-direction: column;
        box-shadow: none;
    }

    .login-section {
        width: 100%;
    }

    .login-section h4 {
        text-align: center;
        font-size: 1.5rem;
    }

    #below-head {
        display: none;
    }

    .logo-container {
        display: flex;
        text-align: center;
        justify-content: center;
        margin: auto;
        margin-bottom: 1.5rem;
    }
    
    .logo-container img {
        width: 300px;
        height: auto;
    }

    .form-group {
        margin-top: 2.8rem;
    }

    .input {
        padding: 0.5rem;
    }

    .label {
        top: 0.5rem;
        left: 0.8rem;
    }
    
}

@media screen and (max-width: 1024px) {
    .container {
        max-width: 100%;
    }

    .form-group input {
        height: 20px;
    }

    .label {
        top: 0.7rem;
        left: 0.8rem;
    }

    .login-section {
        padding: 2rem;
    }

    .login-section h4 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        box-shadow: none;
    }

    .login-section {
        width: 100%;
        padding: 1.5rem;
    }

    .login-section h4 {
        font-size: 1.5rem;
    }
    
    .logo-container img {
        width: 200px;
    }
    
    .input {
        padding: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .login-section {
        padding: 1rem;
    }

    .login-section h4 {
        font-size: 1.25rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .social-login img {
        width: 25px;
        height: 25px;
    }

    .register-link {
        font-size: 0.8rem;
    }

    .logo-container img {
        width: 150px;
    }
}