.auth-container {
    background: #1c1c1e;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    margin: 40px auto;
    border: 1px solid #333; 
}

.auth-title { color: #FFD700; font-size: 1.8rem; margin-bottom: 30px; }

.input-group { margin-bottom: 25px; }

.input-group label {
    display: block;
    color: #a1a1aa;
    font-size: 0.75rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.auth-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #3f3f46;
    color: white;
    font-size: 1.1rem;
    padding: 8px 0;
    outline: none;
}

.signature-wrapper {
    position: relative;
    background: #000;
    border: 1px dashed #3f3f46;
    border-radius: 8px;
    margin-top: 10px;
}

#signature-pad {
    width: 100%;
    height: 150px;
    cursor: crosshair;
}

.btn-secondary {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 0.6rem;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

#signature-pad {
    width: 100%;
    height: 150px;
    cursor: crosshair;
    /* This line stops the page from moving while signing */
    touch-action: none; 
    background-color: #000; /* Ensure it stays dark */
}

.whatsapp_btn.disabled {
    background: #3f3f46 !important;
    cursor: wait;
    opacity: 0.7;
    pointer-events: none;
}

/* Add a subtle glow when the PDF is ready to be shared */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

#generate-pdf:not(.disabled) {
    animation: pulseGlow 2s infinite;
}


@media screen and (min-width:768px){
    .auth-container {
    background: #1c1c1e;
    padding: 40px;
    border-radius: 12px;
    max-width: 980px;
    margin: 40px auto;
    border: 1px solid #333;}


.auth-title { color: #FFD700; font-size: 1.8rem; margin-bottom: 30px; }

.input-group { margin-bottom: 25px; }

.input-group label {
    display: block;
    color: #a1a1aa;
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.auth-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #3f3f46;
    color: white;
    font-size: 1.1rem;
    padding: 8px 0;
    outline: none;
}

.signature-wrapper {
    position: relative;
    background: #000;
    border: 1px dashed #3f3f46;
    border-radius: 8px;
    margin-top: 10px;
}

#signature-pad {
    width: 100%;
    height: 300px;
    cursor: crosshair;
}

.btn-secondary {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 0.6rem;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

#signature-pad {
    width: 100%; 
    height: 450px;
    cursor: crosshair;
    /* This line stops the page from moving while signing */
    touch-action: none; 
    background-color: #000; /* Ensure it stays dark */
}

}
