/* ==========================================================================
   TimeSaver Totem Design System - Kiosk Shared Components
   Consolida tokens, shells, cards, tipografia, avisos e botões para o totem.
   ========================================================================== */

:root {
    --kiosk-primary: #1aaab0;
    --kiosk-primary-dark: #0b6367;
    --kiosk-primary-light: #e6f7f6;
    --kiosk-accent: #8a67f8;
    --kiosk-accent-dark: #4d24ca;
    --kiosk-accent-deep: #2a0f82;
    --kiosk-text-main: #0f172a;
    --kiosk-text-muted: #64748b;
    --kiosk-text-subtle: #94a3b8;
    --kiosk-border: rgba(217, 231, 238, 0.92);
    --kiosk-card-bg: rgba(255, 255, 255, 0.94);
    --kiosk-shadow: 0 18px 48px rgba(72, 107, 135, 0.14);
    --kiosk-radius-card: 28px;
    --kiosk-radius-btn: 18px;
    --kiosk-radius-input: 16px;
}

/* Base Shell do Kiosk (responsivo e fixo para telas touch) */
.kiosk-shell,
.carteira-shell,
.prenatal-shell,
.phone-shell,
.token-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 18px 32px 14px;
    box-sizing: border-box;
}

/* Layout centralizador */
.kiosk-layout,
.carteira-layout,
.prenatal-layout,
.phone-layout,
.token-layout {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    width: 100%;
    max-width: 660px;
    margin: 4px auto 0;
    padding: 10px 0 260px;
}

/* Card Principal Glassmorphism */
.kiosk-card,
.carteira-card,
.prenatal-card,
.phone-card,
.token-card {
    width: 100%;
    min-height: auto !important;
    padding: 24px 38px 22px !important;
    border-radius: var(--kiosk-radius-card) !important;
    box-sizing: border-box;
    text-align: center;
    background: var(--kiosk-card-bg) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: var(--kiosk-shadow) !important;
    border: 1px solid var(--kiosk-border) !important;
    position: relative;
}

/* Badge Superior com Ícone */
.kiosk-welcome-icon,
.index3-welcome-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0fbfb, #e0f6f5);
    border: 1px solid rgba(43, 171, 174, 0.16);
    color: var(--kiosk-primary);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(26, 170, 176, 0.12);
}

.kiosk-welcome-icon .material-icons,
.index3-welcome-icon .material-icons {
    font-size: 30px;
}

.index3-welcome-icon.has-logo,
.index3-welcome-icon:has(.index3-clinic-logo) {
    width: auto;
    height: auto;
    min-height: 52px;
    max-width: 260px;
    border-radius: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.index3-clinic-logo {
    max-width: 240px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.04));
    transition: transform 0.2s ease;
}

.kiosk-welcome-label,
.index3-welcome-label {
    margin: 0;
    color: #55758d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.kiosk-card h1,
.carteira-card h1,
.prenatal-card h1,
.phone-card h1 {
    margin: 6px 0 0;
    color: var(--kiosk-primary-dark);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

/* Divisor Decorativo */
.kiosk-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px auto 18px;
    width: 140px;
}

.kiosk-divider span {
    display: block;
    height: 3px;
    border-radius: 99px;
    background: #e2ecf2;
}

.kiosk-divider span:nth-child(1),
.kiosk-divider span:nth-child(3) {
    width: 24px;
}

.kiosk-divider span:nth-child(2) {
    width: 54px;
    background: linear-gradient(90deg, #1aaab0, #4d24ca);
}

/* Box Informativo / Notice */
.kiosk-notice,
.carteira-notice,
.prenatal-notice,
.phone-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f0fbfb 0%, #e6f7f6 100%);
    border: 1px solid rgba(26, 170, 176, 0.22);
    border-left: 4px solid var(--kiosk-primary);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 28px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(26, 170, 176, 0.08);
}

.kiosk-notice-icon,
.carteira-notice-icon,
.prenatal-notice-icon,
.phone-notice-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(26, 170, 176, 0.12);
    display: grid;
    place-items: center;
    color: var(--kiosk-primary-dark);
}

.kiosk-notice-icon .material-icons,
.carteira-notice-icon .material-icons,
.prenatal-notice-icon .material-icons,
.phone-notice-icon .material-icons {
    font-size: 26px;
}

.kiosk-notice-text,
.carteira-notice-text,
.prenatal-notice-text,
.phone-notice-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.kiosk-notice-text strong,
.carteira-notice-text strong,
.prenatal-notice-text strong,
.phone-notice-text strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--kiosk-primary-dark);
}

.kiosk-notice-text span,
.carteira-notice-text span,
.prenatal-notice-text span,
.phone-notice-text span {
    font-size: 13.5px;
    color: #486b87;
    line-height: 1.4;
}

/* Envoltório de Input Touch */
.kiosk-input-wrap,
.carteira-input-wrap,
.phone-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #d4e3eb;
    border-radius: var(--kiosk-radius-input);
    padding: 0 20px;
    margin: 8px auto 14px;
    max-width: 420px;
    height: 64px;
    box-shadow: 0 4px 16px rgba(72, 107, 135, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.kiosk-input-wrap:focus-within,
.carteira-input-wrap:focus-within,
.phone-input-wrap:focus-within {
    border-color: var(--kiosk-primary);
    box-shadow: 0 0 0 4px rgba(26, 170, 176, 0.16), 0 6px 20px rgba(72, 107, 135, 0.1);
    transform: translateY(-1px);
}

.kiosk-input-wrap input,
.carteira-input-wrap input,
.phone-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #1a3b50;
    text-align: center;
    padding: 0 12px;
}

/* Botão de Ação Primário */
.kiosk-submit-btn,
.carteira-submit-btn,
.prenatal-submit-btn,
.phone-submit-btn {
    width: 100%;
    max-width: 420px;
    height: 64px;
    margin: 20px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #1aaab0 0%, #0b6367 100%);
    color: #ffffff;
    font-size: 19px;
    font-weight: 700;
    border: none;
    border-radius: var(--kiosk-radius-btn);
    box-shadow: 0 10px 24px rgba(11, 99, 103, 0.28);
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
    user-select: none;
}

.kiosk-submit-btn:hover,
.carteira-submit-btn:hover,
.prenatal-submit-btn:hover,
.phone-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11, 99, 103, 0.36);
}

.kiosk-submit-btn:active,
.carteira-submit-btn:active,
.prenatal-submit-btn:active,
.phone-submit-btn:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 6px 16px rgba(11, 99, 103, 0.22);
}

/* Botão Voltar Padronizado */
.kiosk-back-btn,
.index3-logout {
    position: fixed;
    bottom: 28px;
    left: 36px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(217, 231, 238, 0.85);
    border-radius: 99px;
    color: #385d77;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(72, 107, 135, 0.1);
    transition: all 0.2s ease;
}

.kiosk-back-btn:hover,
.index3-logout:hover {
    background: #ffffff;
    color: #0b6367;
    transform: translateX(-3px);
    box-shadow: 0 8px 22px rgba(72, 107, 135, 0.16);
}
