Files
DocuSighn/css/signature.css

225 lines
3.7 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
min-height: 100vh;
padding: 20px;
display: flex;
align-items: center;
justify-content: center;
}
.container {
max-width: 800px;
width: 100%;
background: white;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0,0,0,0.3);
overflow: hidden;
}
.header {
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
color: white;
padding: 30px;
text-align: center;
}
.header h1 {
font-size: 2em;
margin-bottom: 10px;
}
.content {
padding: 30px;
}
.signature-section {
margin: 20px 0;
}
.signature-pad {
border: 3px solid #11998e;
border-radius: 12px;
cursor: crosshair;
touch-action: none;
display: block;
width: 100%;
background: #fafafa;
}
.controls {
display: flex;
gap: 15px;
margin-top: 20px;
flex-wrap: wrap;
}
.button {
padding: 15px 30px;
border: none;
border-radius: 8px;
font-size: 1.1em;
cursor: pointer;
transition: transform 0.2s, opacity 0.2s;
font-weight: 500;
}
.button:hover {
transform: translateY(-2px);
}
.button:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.button-clear {
background: #dc3545;
color: white;
flex: 1;
}
.button-submit {
background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
color: white;
flex: 2;
}
.info-box {
background: #e7f9f5;
border-left: 4px solid #11998e;
padding: 15px;
margin-bottom: 20px;
border-radius: 4px;
}
.success-message {
background: #d4edda;
color: #155724;
padding: 20px;
border-radius: 8px;
text-align: center;
display: none;
margin-top: 20px;
}
.success-message.show {
display: block;
}
.loading {
text-align: center;
padding: 40px;
}
.spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #11998e;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.error-message {
background: #f8d7da;
color: #721c24;
padding: 15px;
border-radius: 8px;
margin-top: 20px;
display: none;
}
.error-message.show {
display: block;
}
.pdf-display {
margin: 20px 0;
padding: 20px;
background: #f8f9fa;
border-radius: 12px;
text-align: center;
display: none;
}
.pdf-display.show {
display: block;
}
.pdf-display h3 {
margin-bottom: 15px;
color: #11998e;
}
.pdf-preview-canvas {
max-width: 100%;
border: 2px solid #11998e;
border-radius: 8px;
background: white;
display: block;
margin: 10px auto;
}
.page-separator {
text-align: center;
margin: 20px 0;
padding: 10px;
background: linear-gradient(135deg, #11998e15 0%, #38ef7d15 100%);
border-radius: 8px;
font-weight: bold;
color: #11998e;
}
.waiting-message {
text-align: center;
padding: 40px;
color: #666;
}
.waiting-message .icon {
font-size: 3em;
margin-bottom: 20px;
}
.already-connected-warning {
margin-top: 25px;
padding: 15px;
background: #fff3cd;
border: 2px solid #ffc107;
border-radius: 8px;
display: flex;
align-items: flex-start;
gap: 12px;
text-align: left;
}
.already-connected-warning .warning-icon {
font-size: 1.8em;
flex-shrink: 0;
}
.already-connected-warning .warning-text {
flex: 1;
color: #856404;
font-size: 0.95em;
line-height: 1.5;
}
.already-connected-warning .warning-text strong {
font-weight: 600;
}