@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: url(../img/bg-login.png) center/cover no-repeat;
    padding: 20px;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.50);
    backdrop-filter: blur(4px);
    z-index: 0;
}


.login-card {
    width: 100%;
    max-width: 600px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
    z-index: 1;
    animation: fadeIn 0.6s ease forwards;
}

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

.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.card-body h1 {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.7px;
    text-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.form_login {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input_container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input_container input {
    width: 100%;
    padding: 16px 48px;
    font-size: 1rem;
    color: #222;
    background: rgba(255,255,255,0.88);
    border: none;
    outline: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.20);
    transition: 0.25s ease;
}

.input_container input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.input-icon,
.toggle-password {
    position: absolute;
    font-size: 1.4rem;
    color: #555;
}

.input-icon {
    left: 16px;
}

.toggle-password {
    right: 16px;
    cursor: pointer;
    transition: 0.2s;
}

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

::placeholder { color: #666; }

.forgotPass {
    color: var(--secondary-color);
    cursor: pointer;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(0,0,0,0.25);
    transition: 0.2s;
    text-align: center;
}

.forgotPass:hover {
    text-decoration: underline;
    opacity: 0.85;
}


.btn_logar {
    margin: 0 auto;
    width: 65px;
    height: 65px;
    margin-top: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 0 18px rgba(0,140,255,0.65),
        inset 0 0 8px rgba(255,255,255,0.2);
    transition: 0.25s ease-in-out;
}

.btn_logar:hover {
    transform: scale(1.08);
    box-shadow:
        0 0 26px rgba(0,140,255,0.95),
        inset 0 0 10px rgba(255,255,255,0.25);
}


@media (max-width: 480px) {
    .login-card {
        padding: 30px 22px;
    }
    .card-body h1 {
        font-size: 1.7rem;
    }
    .btn_logar {
        width: 58px;
        height: 58px;
        font-size: 1.6rem;
    }
}
