@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;500;700;900&display=swap');

:root {
    --primaryColor: #3498db;
    --hoverColor: #2980b9;
    --backgroundColor: #ecf0f1;
    --inputBorderColor: #bdc3c7;
    --inputFocusBorderColor: #3498db;
    --buttonTextColor: #fff;
    --borderRadius: 8px;
    --boxShadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: var(--backgroundColor);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #fff;
    border-radius: var(--borderRadius);
    box-shadow: var(--boxShadow);
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.home-icon {
    display: flex;
    align-items: center;
    margin-right: 10px;
    color: var(--primaryColor);
    font-size: 24px;
    text-decoration: none;
}

.home-icon svg {
    width: 24px;
    height: 24px;
}

.login-container h2 {
    font-size: 1.5em;
    color: var(--primaryColor);
    text-align: center;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid var(--inputBorderColor);
    border-radius: var(--borderRadius);
    box-sizing: border-box;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--inputFocusBorderColor);
    box-shadow: 0 0 5px var(--inputFocusBorderColor);
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: var(--primaryColor);
    color: var(--buttonTextColor);
    border: none;
    border-radius: var(--borderRadius);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: var(--hoverColor);
}

p {
    text-align: center;
    margin-top: 20px;
}

a {
    color: var(--primaryColor);
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .login-container {
        width: 90%;
        margin: 50px auto;
    }

    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        font-size: 16px;
    }
}

.password-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 15px;
}
