﻿/* ============================================================
   AppGermed Login
   Identidade Visual 2026
   ============================================================ */

:root {
    --ag-login-bg-1: #063844;
    --ag-login-bg-2: #084856;
    --ag-login-bg-3: #052d36;
    --ag-login-primary: #1687c8;
    --ag-login-primary-2: #1fa2ff;
    --ag-login-primary-soft: #eaf8ff;
    --ag-login-text: #173244;
    --ag-login-muted: #64788b;
    --ag-login-card: rgba(255,255,255,.88);
    --ag-login-topbar-h: 68px;
    --ag-login-footer-h: 42px;
}


/* ============================================================
   PAGE
   ============================================================ */

.ag-login-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-rows: var(--ag-login-topbar-h) minmax(0,1fr) var(--ag-login-footer-h);
    overflow: hidden;
}


/* ============================================================
   Background
   ============================================================ */

.ag-login-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient( rgba(7,53,63,.20), rgba(7,53,63,.20) ), url('/imagens/tela_entrada.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.ag-login-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient( circle at 18% 35%, rgba(255,255,255,.28), transparent 35% ), linear-gradient( 90deg, rgba(255,255,255,.20), rgba(255,255,255,.08) 45%, rgba(6,47,58,.16) );
    z-index: 1;
}


/* ============================================================
   Camadas
   ============================================================ */

.ag-login-topbar,
.ag-login-main,
.ag-login-footer {
    position: relative;
    z-index: 2;
}


/* ============================================================
   TOPBAR
   ============================================================ */

.ag-login-topbar {
    height: var(--ag-login-topbar-h);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient( 90deg, var(--ag-login-bg-1), var(--ag-login-bg-2), var(--ag-login-bg-1) );
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 8px 22px rgba(0,0,0,.20);
}

.ag-login-topbar-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ag-login-topbar-logo {
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.20));
}


/* ============================================================
   MAIN
   ============================================================ */

.ag-login-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
}


/* ============================================================
   CARD
   ============================================================ */

.ag-login-card {
    width: 540px;
    max-width: calc(100vw - 40px);
    padding: 36px 42px;
    border-radius: 24px !important;
    background: var(--ag-login-card) !important;
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.70) !important;
    box-shadow: 0 30px 70px rgba(0,0,0,.20);
}


/* ============================================================
   HEADER
   ============================================================ */

.ag-login-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ag-login-avatar {
    width: 58px !important;
    height: 58px !important;
    background: linear-gradient( 135deg, #1687c8, #063844 ) !important;
    color: #fff !important;
}

.ag-login-title {
    font-weight: 900 !important;
    color: var(--ag-login-text);
}

.ag-login-subtitle {
    color: var(--ag-login-muted);
    font-weight: 700;
}


/* ============================================================
   FORM
   ============================================================ */

.ag-login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ag-login-input .mud-input-root {
    min-height: 56px;
    background: rgba(255,255,255,.74);
}

.ag-login-input input {
    font-weight: 800;
}

.ag-login-input .mud-input-outlined-border {
    border-color: rgba(8,60,74,.18);
}

.ag-login-input .mud-input-root:hover
.mud-input-outlined-border {
    border-color: #1687c8;
}

.ag-login-input
.mud-input-root.mud-focused
.mud-input-outlined-border {
    border-width: 2px;
    border-color: #1687c8;
}


/* ============================================================
   BUTTON
   ============================================================ */

.ag-login-button {
    height: 54px !important;
    margin-top: 8px;
    border-radius: 14px !important;
    color: #fff !important;
    font-weight: 900 !important;
    letter-spacing: .02rem;
    background: linear-gradient( 135deg, #1b89cb, #063844 ) !important;
    box-shadow: 0 12px 26px rgba(22,135,200,.28);
}

    .ag-login-button:hover {
        background: linear-gradient( 135deg, #29a6ff, #1687c8 ) !important;
    }


/* ============================================================
   HELP
   ============================================================ */

.ag-login-help {
    margin-top: 8px;
    padding: 12px;
    border-radius: 14px;
    background: #eef8fd;
    border: 1px solid #cce8fb;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    font-weight: 700;
    color: #50697b;
}


/* ============================================================
   FOOTER
   ============================================================ */

.ag-login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient( 90deg, var(--ag-login-bg-1), var(--ag-login-bg-2), var(--ag-login-bg-1) );
    color: rgba(255,255,255,.90);
    font-size: .78rem;
    font-weight: 700;
    border-top: 1px solid rgba(255,255,255,.10);
}


/* ============================================================
   RESPONSIVO
   ============================================================ */

@media(max-width:900px) {

    .ag-login-card {
        width: 470px;
        padding: 30px;
    }
}

@media(max-width:560px) {

    .ag-login-main {
        padding: 18px;
    }

    .ag-login-card {
        width: 100%;
        padding: 24px;
        border-radius: 18px !important;
    }

    .ag-login-topbar-logo {
        height: 42px;
    }
}
