﻿@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    min-height: 100vh;
    background-image: url("../img/login9.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #f8fafc;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.45));
    z-index: -1;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.container {
    width: 100%;
    max-width: 430px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    color: #fff;
    padding: 36px 28px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.container h1 {
    font-size: 32px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.subtitle {
    margin-top: 8px;
    margin-bottom: 26px;
    text-align: center;
    color: rgba(248, 250, 252, 0.86);
    font-size: 14px;
}

.input-caixa {
    position: relative;
    width: 100%;
    height: 52px;
    margin: 16px 0;
}

.input-caixa input {
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.32);
    outline: none;
    font-size: 16px;
    color: #fff;
    padding: 20px 45px 20px 20px;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-caixa input:focus {
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.input-caixa input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.input-caixa i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

#lock,
#unlock {
    cursor: pointer;
}

#unlock {
    display: none;
}

.login {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    background: linear-gradient(135deg, #e2e8f0, #ffffff);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #0f172a;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.messages {
    margin-top: 14px;
}

.error-message {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #fecaca;
    background-color: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.5);
}

@media (max-width: 480px) {
    .container {
        padding: 28px 20px;
    }

    .container h1 {
        font-size: 28px;
    }
}
