@charset "UTF-8";

:root{
    --accent: #2f3eb8;
    --accent-hover: #2531a0;
    --text-primary: #1a1d23;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --bg-field: #f9fafb;
    --card-bg: #ffffff;
}

*, *::before, *::after{
    box-sizing: border-box;
}

body, html{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-image: url('imagens/wallpaper.jpg');
    background-color: #f4f5fb;
    height: 100%;
    width: 100%;
    padding: 0px;
    margin: 0px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

main{
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    width: 100%;
    padding: 60px 16px 100px;
}

.logo-wrapper{
    margin-bottom: 28px;
}

.logo-wrapper img{
    height: 32px;
    display: block;
}

main > section{
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 8px 30px rgba(20, 20, 60, 0.08);
}

.login-card h1{
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.subtitle{
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 24px;
}

.field{
    margin-bottom: 16px;
}

.field label{
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-wrapper{
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-field);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 12px;
    height: 42px;
    transition: border-color .15s;
}

.input-wrapper:focus-within{
    border-color: var(--accent);
}

.input-icon{
    color: var(--text-secondary);
    flex-shrink: 0;
}

.input-wrapper input{
    border: none;
    background: none;
    outline: none;
    flex: 1;
    height: 100%;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-primary);
}

.input-wrapper input::placeholder{
    color: #b9bcc6;
}

.toggle-password{
    border: none;
    background: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

.row-between{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 20px;
    font-size: 13px;
}

.remember{
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.remember input{
    width: 15px;
    height: 15px;
    accent-color: var(--accent);
    cursor: pointer;
}

.forgot{
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.forgot:hover{
    text-decoration: underline;
}

.btn-login{
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 8px;
    background-color: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s;
}

.btn-login:hover{
    background-color: var(--accent-hover);
}

.divider{
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
}

.divider::before,
.divider::after{
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

.divider span{
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: .04em;
}

.social-row{
    display: flex;
    gap: 12px;
}

.social{
    flex: 1;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.social:hover{
    background-color: var(--bg-field);
    border-color: #d1d5db;
}

.register{
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 24px 0 0;
}

.register a{
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

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

footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

footer p{
    margin: 0;
    font-size: 12px;
    color: var(--text-secondary);
}