/* ======================================== */
/* CSS LIMPO, ORGANIZADO E SEM DUPLICATAS   */
/* ======================================== */

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #4CAF50;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196F3;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #ddd;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-size-base: 16px;
    --font-size-sm: 14px;
    --font-size-xs: 12px;
}

html, body {
    width: 100%;
    height: auto;
    overflow-x: hidden;
    font-size: var(--font-size-base);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Tipografia --- */
.auth-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    margin: 20px auto;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.dashboard-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    margin-bottom: 20px;
    word-wrap: break-word;
    font-weight: 600;
}

h1 {
    font-size: 36px;
    line-height: 1.3;
}

h2 {
    font-size: 32px;
    line-height: 1.3;
}

h3 {
    font-size: 28px;
    line-height: 1.3;
}

h4 {
    font-size: 22px;
    line-height: 1.4;
}

p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 15px;
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: #f9f9f9;
    transition: var(--transition);
    line-height: 1.5;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="tel"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

button:active {
    transform: translateY(0);
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
}

.alert-success, .success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-danger, .error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-warning, .warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info, .info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid var(--info-color);
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-content h3 {
    margin-bottom: 5px;
    margin-top: 0;
    font-size: 18px;
}

.alert-content p {
    margin: 0;
    font-size: 15px;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content {
    padding: 30px;
    font-size: 15px;
}

.card-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 16px;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.link-secondary {
    color: var(--text-light);
}

.link-secondary:hover {
    color: var(--primary-color);
}

.header-section {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content h1 {
    margin-bottom: 5px;
    font-size: 32px;
}

.header-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 10px;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-info {
    background-color: #e3f2fd;
    color: #1565c0;
}

.p-20 {
    padding: 20px;
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.form-header h1 {
    margin: 0;
    font-size: 28px;
    color: white;
}

.form-header a, .form-header button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-header a:hover, .form-header button:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.status-completo {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #4CAF50;
}

.status-incompleto {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ff9800;
}

.section-title:first-of-type {
    margin-top: 0;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: bold;
    color: #d32f2f;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #333;
    font-size: 16px;
    text-align: right;
    word-break: break-word;
    line-height: 1.6;
}

.medical-grid {
    display: grid;
    flex-direction: column;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-bottom: 30px;
}

.medical-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.medical-label {
    font-weight: 600;
    color: #667eea;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.medical-value {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
    word-break: break-word;
}

.medical-value::-webkit-scrollbar {
    width: 6px;
}

.medical-value::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.medical-value::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.medical-value::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.qr-container {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.qr-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-copy {
    background-color: #2196F3;
    color: white;
}

.btn-print {
    background-color: #4CAF50;
    color: white;
}

.alert-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.btn-register:active {
    transform: translateY(0);
}

.auth-links {
    margin-top: 25px;
    text-align: center;
}

.auth-links p {
    margin: 10px 0;
    font-size: 15px;
    color: #666;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #f44336;
    margin-bottom: 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error::before {
    content: "⚠️";
    font-size: 18px;
    flex-shrink: 0;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    margin-bottom: 20px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success::before {
    content: "✓";
    font-size: 18px;
    flex-shrink: 0;
}

.btn-reset:active {
    transform: translateY(0);
}

.form-header a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-header a:hover {
    background: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background-color: #f9f9f9;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    color: #666;
    font-size: 15px;
    display: block;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.perfil-container {
    max-width: 600px;
    margin: 0 auto;
}

.header-perfil {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-perfil h1 {
    color: #333;
    font-size: 24px;
    margin: 0;
}

.btn-voltar {
    background-color: #008CBA;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    background-color: #007399;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-perfil {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.btn-salvar {
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-salvar:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.mensagem {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
}

.mensagem.sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mensagem.erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info-atual {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.info-atual strong {
    display: block;
    color: #667eea;
    margin-bottom: 5px;
}

.info-atual span {
    color: #333;
    word-break: break-word;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
    margin: 0;
}

.header p {
    color: #666;
    font-size: 16px;
}

.info-value.empty {
    color: #999;
    font-style: italic;
}

.medical-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #d32f2f;
}

.medical-card-title {
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 12px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.medical-card-content {
    color: #333;
    line-height: 1.6;
    word-break: break-word;
    font-size: 15px;
}

.medical-card-content.empty {
    color: #999;
    font-style: italic;
}

.print-btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.emergency-alert {
    background-color: #fff3cd;
    border: 2px solid #ff9800;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #856404;
}

.emergency-alert h3 {
    margin-bottom: 10px;
    color: #ff6f00;
}

.hash-display {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.hash-label {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 15px;
    text-transform: uppercase;
}

.hash-value {
    background: white;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    color: #333;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.url-display {
    background: white;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    color: #333;
    border: 1px solid #ddd;
    font-size: 15px;
}

.copy-btn {
    background-color: #2196F3;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-gerar {
    background-color: #4CAF50;
    color: white;
}

.btn-gerar:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-regenerar {
    background-color: #ff9800;
    color: white;
}

.btn-regenerar:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-deletar {
    background-color: #f44336;
    color: white;
}

.btn-deletar:hover {
    background-color: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.info-box h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.info-box p {
    margin: 5px 0;
    font-size: 15px;
    line-height: 1.6;
}

.qr-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #667eea;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    margin: 20px 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.btn-login:active {
    transform: translateY(0);
}

.importance-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    text-align: justify;
}

.importance-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 12px;
}

.importance-title::before {
    content: "⚡";
    font-size: 18px;
}

.importance-text {
    color: #555;
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.importance-highlight {
    color: #764ba2;
    font-weight: 600;
}

.health-tips-container {
    animation: slideIn 0.5s ease-out 0.2s both;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}

.health-tips-header {
    margin-bottom: 20px;
    text-align: center;
}

.health-tips-header h2 {
    font-size: 24px;
    color: #333;
    background: linear-gradient(135deg, #2196F3 0%, #00BCD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.tip-card {
    background: #f8f9fa;
    border-left: 4px solid #2196F3;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
}

.tip-card h3 {
    font-size: 18px;
    color: #2196F3;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.donation-container {
    animation: slideIn 0.5s ease-out 0.1s both;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: justify;
}

.donation-header {
    margin-bottom: 25px;
}

.donation-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.donation-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.donation-content {
    width: 100%;
    margin: 0;
}

.donation-text {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

.donation-text strong {
    color: #667eea;
    display: block;
    margin-bottom: 10px;
    font-size: 17px;
}

.qrcode-image {
    max-width: 180px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qrcode-label {
    color: #666;
    font-size: 15px;
    font-weight: 600;
}

.donation-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.developer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.developer-logo {
    width: 80px;
    height: auto;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.developer-logo:hover {
    transform: scale(1.05);
}

.developer-credits {
    color: #999;
    font-size: 15px;
    line-height: 1.6;
}

.developer-credits strong {
    color: #667eea;
    font-weight: 600;
}

.developer-name {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-top: 8px;
}

.btn-recover:active {
    transform: translateY(0);
}

.alert-info::before {
    content: "ℹ️";
    font-size: 18px;
    flex-shrink: 0;
}

/* --- Layout & Containers --- */
.section-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 16px;
    margin: 30px 0 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-row {
    display: grid;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 20px;
    grid-template-columns: 200px 1fr;
    align-items: start;
}

.qr-section {
    text-align: center;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border: 2px dashed #ddd;
}

.footer {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
}

.qrcode-section {
    background: #ffffff;
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* --- Formulários --- */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 48px;
    line-height: 1.5;
    flex: 1;
    min-width: 150px;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

button {
    padding: 14px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
    line-height: 1.5;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-logout {
    background: rgba(244, 67, 54, 0.4) !important;
}

.btn-logout:hover {
    background: rgba(244, 67, 54, 0.6) !important;
}

.form-content {
    padding: 40px;
}

.btn-qr {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-reset {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-recover {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-recover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* --- Componentes --- */
.info-box {
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #1565c0;
}

/* --- Utilitários --- */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* --- Outros --- */
.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 30px 0;
    border-top: 2px solid #eee;
}

.full-width {
    grid-column: 1 / -1;
}

.qr-link {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-family: monospace;
    font-size: 13px;
    margin: 15px 0;
    word-break: break-all;
}

from {
    opacity: 0;
    transform: translateY(20px);
}

to {
    opacity: 1;
    transform: translateY(0);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
    }
    body {
        padding: 15px;
        font-size: 16px;
    }
    .auth-container {
        padding: 30px 20px;
        max-width: 100%;
    }
    .form-container {
        padding: 20px;
    }
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 22px;
    }
    h4 {
        font-size: 18px;
    }
    p {
        font-size: 15px;
    }
    .btn {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 44px;
        width: 100%;
        justify-content: center;
    }
    button {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 44px;
    }
    .card-header {
        font-size: 18px;
        padding: 15px;
    }
    .card-content {
        padding: 20px;
        font-size: 15px;
    }
    .header-section {
        padding: 20px;
    }
    .header-content h1 {
        font-size: 24px;
    }
    .header-content p {
        font-size: 15px;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .alert {
        padding: 14px 16px;
        font-size: 15px;
    }
    .alert-icon {
        font-size: 20px;
    }
    a {
        font-size: 15px;
    }
    input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
        padding: 12px 14px;
        font-size: 16px;
    }
    .form-group label {
        font-size: 15px;
    }
    .section-title {
        font-size: 20px;
    }
    .form-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    .form-header a, .form-header button {
        flex: 1;
        justify-content: center;
    }
    .form-content {
        padding: 25px;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .form-header h1 {
        font-size: 24px;
    }
    .form-header a {
        width: 100%;
        text-align: center;
    }
    .form-actions {
        flex-direction: column;
    }
    .header-perfil {
        flex-direction: column;
        text-align: center;
    }
    .header-perfil h1 {
        font-size: 20px;
    }
    .btn-voltar {
        width: 100%;
        justify-content: center;
    }
    .header {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
    }
    .header h1 {
        font-size: 20px;
    }
    .info-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .medical-grid {
        grid-template-columns: 1fr;
    }
    .medical-card {
        padding: 15px;
    }
    .medical-card-title {
        font-size: 16px;
    }
    .medical-card-content {
        font-size: 15px;
    }
    .button-group {
        flex-direction: column;
    }
    .login-wrapper {
        gap: 20px;
    }
    .auth-container, .donation-container {
        padding: 30px 20px;
    }
    .auth-header h1 {
        font-size: 24px;
    }
    .donation-header h2 {
        font-size: 20px;
    }
    .btn-login {
        padding: 11px;
        font-size: 15px;
    }
    .importance-section {
        padding: 15px;
    }
    .importance-title {
        font-size: 15px;
    }
    .importance-text {
        font-size: 18px;
    }
    .qrcode-image {
        max-width: 150px;
    }
    .developer-logo {
        width: 70px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 25px 20px;
        margin: 10px auto;
        border-radius: 8px;
    }
    :root {
        --font-size-base: 15px;
    }
    body {
        padding: 10px;
        font-size: 15px;
    }
    .form-container {
        padding: 15px;
        border-radius: 8px;
    }
    h1 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    input[type="text"], input[type="email"], input[type="password"], input[type="tel"], textarea, select {
        padding: 12px 12px;
        font-size: 16px;
        margin: 8px 0;
    }
    .btn {
        padding: 12px 16px;
        font-size: 15px;
        gap: 6px;
        min-height: 44px;
    }
    button {
        padding: 12px 16px;
        font-size: 15px;
        min-height: 44px;
    }
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
    .card-header {
        font-size: 15px;
        padding: 12px;
    }
    .card-content {
        padding: 15px;
        font-size: 15px;
    }
    .alert {
        padding: 12px 15px;
        gap: 10px;
        margin-bottom: 15px;
        font-size: 15px;
    }
    .alert-icon {
        font-size: 18px;
    }
    .alert-content h3 {
        font-size: 16px;
    }
    .alert-content p {
        font-size: 15px;
    }
    .header-section {
        padding: 15px;
        margin-bottom: 20px;
        flex-direction: column;
    }
    .header-content h1 {
        font-size: 20px;
    }
    .header-content p {
        font-size: 15px;
    }
    .header-actions {
        gap: 8px;
        width: 100%;
        justify-content: center;
    }
    .badge {
        padding: 6px 10px;
        font-size: 15px;
    }
    .form-group label {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .section-title {
        font-size: 18px;
        padding: 10px 12px;
        margin: 20px 0 15px 0;
        margin-bottom: 15px;
    }
    a {
        font-size: 15px;
    }
    textarea {
        min-height: 100px;
        font-size: 16px;
    }
    .auth-header h1 {
        font-size: 24px;
    }
    .btn-register {
        padding: 11px;
        font-size: 15px;
    }
    .btn-reset {
        padding: 11px;
        font-size: 15px;
    }
    .form-content {
        padding: 20px;
    }
    .form-header {
        padding: 15px;
    }
    .form-header h1 {
        font-size: 20px;
    }
    .header-perfil {
        padding: 15px;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .form-group input {
        padding: 10px;
        font-size: 16px;
    }
    .btn-salvar {
        padding: 10px;
        font-size: 15px;
    }
    .container {
        width: 100%;
    }
    .header {
        padding: 15px;
    }
    .header h1 {
        font-size: 20px;
    }
    .header p {
        font-size: 15px;
    }
    .info-row {
        padding: 10px 0;
    }
    .info-label {
        font-size: 15px;
    }
    .info-value {
        font-size: 15px;
    }
    .medical-card {
        padding: 15px;
    }
    .medical-card-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    .medical-card-content {
        font-size: 15px;
    }
    .print-btn {
        width: 100%;
        padding: 10px;
        font-size: 15px;
    }
    .footer {
        padding: 15px;
        font-size: 15px;
    }
    .hash-display {
        padding: 15px;
    }
    .hash-value, .url-display {
        font-size: 15px;
        padding: 10px;
    }
    .copy-btn {
        width: 100%;
    }
    .login-wrapper {
        gap: 15px;
        max-width: 100%;
    }
    .auth-container, .donation-container {
        padding: 20px 15px;
    }
    .auth-header h1, .donation-header h2 {
        font-size: 20px;
    }
    .auth-header p, .donation-header p {
        font-size: 15px;
    }
    .importance-section {
        padding: 12px;
        margin-top: 20px;
    }
    .importance-title {
        font-size: 15px;
    }
    .importance-text {
        font-size: 15px;
        line-height: 1.6;
    }
    .donation-text {
        padding: 15px;
        font-size: 15px;
    }
    .qrcode-section {
        min-height: 200px;
        padding: 15px;
    }
    .qrcode-image {
        max-width: 120px;
    }
    .qrcode-label {
        font-size: 15px;
    }
    .developer-logo {
        width: 60px;
    }
    .developer-credits {
        font-size: 15px;
    }
    .developer-name {
        font-size: 15px;
    }
    .health-tips-header h2 {
        font-size: 20px;
    }
    .tip-card h3 {
        font-size: 16px;
    }
    .tip-card p {
        font-size: 14px;
    }
    .btn-recover {
        padding: 11px;
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .form-row-3 {
        grid-template-columns: 1fr 1fr;
    }
    .header-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .header-actions {
        justify-content: center;
        width: 100%;
    }
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 28px;
    }
    p {
        font-size: 16px;
    }
}

@media print {
    body {
        background: white;
        padding: 0;
    }
    .container {
        max-width: 100%;
    }
    .print-btn, .header {
        display: none;
    }
    .card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .card-header {
        background: #d32f2f !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
