:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --text-color: #2d3748;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(107, 179, 217, 0.18), transparent 35%),
        radial-gradient(circle at 90% 5%, rgba(137, 207, 240, 0.15), transparent 40%),
        var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.public-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero {
    background: linear-gradient(155deg, #89CFF0, #6BB3D9);
    color: #fff;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 16px rgba(107, 179, 217, 0.25);
    display: flex;
    align-items: center;
    gap: 0.8rem;
 }

.hero-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.hero .hero-empresa-nome {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.1rem 0 0;
    color: rgba(255, 255, 255, 0.92);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.22rem 0 0;
    font-size: 0.88rem;
}

.header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.signature-pad {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: #fff;
    touch-action: none;
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background-color: #6BB3D9;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #5A9CC7;
}

.btn-secondary {
    background-color: #edf2f7;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.success-message {
    text-align: center;
    padding: 3rem 1rem;
}

.success-message i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .public-container {
        margin: 1rem auto;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 0.55rem;
        padding: 0.85rem;
    }
    .card {
        padding: 1.5rem;
    }
}

.app-icon{display:inline-block;width:1em;height:1em;vertical-align:-.125em;flex-shrink:0;fill:currentColor}
.app-icon.spin{animation:app-spin 2s linear infinite}
@keyframes app-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
